Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2026 Changes in this version + var Version = "dev" + func Init(ctx context.Context, configPath string, opt *InitOption, stdout io.Writer) error + func IsExitCode(err error) bool + func MarshalIndent(v any) (string, error) + func Normalize(def map[string]any) (map[string]any, error) + func PruneDefaults(remote, local map[string]any) map[string]any + func RemoteOnlyPaths(remote, local map[string]any) []string + func RemoteToMap(jd types.JobDefinition) (map[string]any, error) + func Run(ctx context.Context, args []string) error + type App struct + Batch BatchAPI + Config *Config + Debug bool + JobDefs []*JobDef + Stderr io.Writer + Stdout io.Writer + WaitInterval time.Duration + func New(ctx context.Context, opts *Options) (*App, error) + func (a *App) Deploy(ctx context.Context, opt *DeployOption) error + func (a *App) Deregister(ctx context.Context, opt *DeregisterOption) error + func (a *App) Diff(ctx context.Context, opt *DiffOption) error + func (a *App) Render(ctx context.Context, opt *RenderOption) error + func (a *App) Revisions(ctx context.Context, opt *RevisionsOption) error + func (a *App) Rollback(ctx context.Context, opt *RollbackOption) error + func (a *App) Run(ctx context.Context, opt *RunOption) error + func (a *App) Status(ctx context.Context, opt *StatusOption) error + func (a *App) Target(names []string) ([]*JobDef, error) + type BatchAPI interface + DeregisterJobDefinition func(ctx context.Context, params *batch.DeregisterJobDefinitionInput, ...) (*batch.DeregisterJobDefinitionOutput, error) + DescribeJobDefinitions func(ctx context.Context, params *batch.DescribeJobDefinitionsInput, ...) (*batch.DescribeJobDefinitionsOutput, error) + DescribeJobs func(ctx context.Context, params *batch.DescribeJobsInput, ...) (*batch.DescribeJobsOutput, error) + RegisterJobDefinition func(ctx context.Context, params *batch.RegisterJobDefinitionInput, ...) (*batch.RegisterJobDefinitionOutput, error) + SubmitJob func(ctx context.Context, params *batch.SubmitJobInput, ...) (*batch.SubmitJobOutput, error) + type CLI struct + Config string + Debug bool + Deploy DeployOption + Deregister DeregisterOption + Diff DiffOption + ExtCode map[string]string + ExtStr map[string]string + Init InitOption + Render RenderOption + Revisions RevisionsOption + Rollback RollbackOption + Run RunOption + Status StatusOption + Version struct{} + type Config struct + JobDefinitions []string + Plugins []Plugin + Region string + func LoadConfig(ctx context.Context, path string, funcs *Funcs, opts *JsonnetOptions) (*Config, error) + func (c *Config) Dir() string + func (c *Config) ResolveJobDefinitionFiles() ([]string, error) + func (c *Config) Save() error + type DeployOption struct + DryRun bool + Force bool + Names []string + type DeregisterOption struct + DryRun bool + Force bool + KeepLatest int32 + Names []string + Revision int32 + type DiffOption struct + ExitCode bool + Names []string + type Funcs struct + func (f *Funcs) JsonnetVM(extStr, extCode map[string]string) *jsonnet.VM + func (f *Funcs) Render(name, src string) (string, error) + type InitOption struct + Format string + JobDefinition string + Overwrite bool + Path string + Region string + type JobDef struct + Def map[string]any + Name string + Path string + func Filter(defs []*JobDef, patterns []string) ([]*JobDef, error) + func LoadJobDefFile(path string, funcs *Funcs, opts *JsonnetOptions) (*JobDef, error) + func LoadJobDefs(c *Config, funcs *Funcs, opts *JsonnetOptions) ([]*JobDef, error) + type JsonnetOptions struct + ExtCode map[string]string + ExtStr map[string]string + type Options struct + ConfigPath string + Debug bool + ExtCode map[string]string + ExtStr map[string]string + type Plugin struct + Config map[string]any + FuncPrefix string + Name string + type RenderOption struct + Names []string + type RevisionsOption struct + All bool + Names []string + type RollbackOption struct + DryRun bool + Names []string + type RunOption struct + Names []string + Queue string + Wait bool + type SSMAPI interface + GetParameter func(ctx context.Context, params *ssm.GetParameterInput, ...) (*ssm.GetParameterOutput, error) + type StatusOption struct + Names []string