Documentation
¶
Overview ¶
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Package runner provides shared runners and command builders for stage commands.
Index ¶
- func NewAddCommand(cfg CommandConfig) *cli.Command
- func NewApplyCommand(cfg CommandConfig) *cli.Command
- func NewDeleteCommand(cfg CommandConfig) *cli.Command
- func NewDiffCommand(cfg CommandConfig) *cli.Command
- func NewEditCommand(cfg CommandConfig) *cli.Command
- func NewResetCommand(cfg CommandConfig) *cli.Command
- func NewStatusCommand(cfg CommandConfig) *cli.Command
- func NewTagCommand(cfg CommandConfig) *cli.Command
- func NewUntagCommand(cfg CommandConfig) *cli.Command
- type AddOptions
- type AddRunner
- type ApplyOptions
- type ApplyRunner
- type CommandConfig
- type DeleteOptions
- type DeleteRunner
- type DiffOptions
- type DiffRunner
- type EditOptions
- type EditRunner
- type ResetOptions
- type ResetRunner
- type StatusOptions
- type StatusRunner
- type TagOptions
- type TagRunner
- type UntagOptions
- type UntagRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddCommand ¶
func NewAddCommand(cfg CommandConfig) *cli.Command
NewAddCommand creates an add command with the given config.
func NewApplyCommand ¶
func NewApplyCommand(cfg CommandConfig) *cli.Command
NewApplyCommand creates an apply command with the given config.
func NewDeleteCommand ¶
func NewDeleteCommand(cfg CommandConfig) *cli.Command
NewDeleteCommand creates a delete command with the given config.
func NewDiffCommand ¶
func NewDiffCommand(cfg CommandConfig) *cli.Command
NewDiffCommand creates a diff command with the given config.
func NewEditCommand ¶
func NewEditCommand(cfg CommandConfig) *cli.Command
NewEditCommand creates an edit command with the given config.
func NewResetCommand ¶
func NewResetCommand(cfg CommandConfig) *cli.Command
NewResetCommand creates a reset command with the given config.
func NewStatusCommand ¶
func NewStatusCommand(cfg CommandConfig) *cli.Command
NewStatusCommand creates a status command with the given config.
func NewTagCommand ¶ added in v0.3.0
func NewTagCommand(cfg CommandConfig) *cli.Command
NewTagCommand creates a tag command with the given config.
func NewUntagCommand ¶ added in v0.3.0
func NewUntagCommand(cfg CommandConfig) *cli.Command
NewUntagCommand creates an untag command with the given config.
Types ¶
type AddOptions ¶
type AddOptions struct {
Name string
Value string // Optional: if set, skip editor and use this value
Description string
}
AddOptions holds options for the add command.
type AddRunner ¶
type AddRunner struct {
UseCase *stagingusecase.AddUseCase
Stdout io.Writer
Stderr io.Writer
OpenEditor editor.OpenFunc // Optional: defaults to editor.Open if nil
}
AddRunner executes add operations using a usecase.
type ApplyOptions ¶
type ApplyOptions struct {
Name string // Optional: apply only this item, otherwise apply all
IgnoreConflicts bool // Skip conflict detection and force apply
}
ApplyOptions holds options for the apply command.
type ApplyRunner ¶
type ApplyRunner struct {
UseCase *stagingusecase.ApplyUseCase
Stdout io.Writer
Stderr io.Writer
}
ApplyRunner executes apply operations using a usecase.
func (*ApplyRunner) Run ¶
func (r *ApplyRunner) Run(ctx context.Context, opts ApplyOptions) error
Run executes the apply command.
type CommandConfig ¶
type CommandConfig struct {
// CommandName is the subcommand name (e.g., "param", "secret").
CommandName string
// ItemName is the item name for messages (e.g., "parameter", "secret").
ItemName string
// Factory creates a FullStrategy with an initialized AWS client.
Factory staging.StrategyFactory
// ParserFactory creates a Parser without AWS client (for status, parsing).
ParserFactory staging.ParserFactory
}
CommandConfig holds service-specific configuration for building stage commands.
type DeleteOptions ¶ added in v0.1.1
type DeleteOptions struct {
Name string
Force bool // For Secrets Manager: force immediate deletion
RecoveryWindow int // For Secrets Manager: days before permanent deletion (7-30)
}
DeleteOptions holds options for the delete command.
type DeleteRunner ¶ added in v0.1.1
type DeleteRunner struct {
UseCase *stagingusecase.DeleteUseCase
Stdout io.Writer
Stderr io.Writer
}
DeleteRunner executes delete operations using a usecase.
func (*DeleteRunner) Run ¶ added in v0.1.1
func (r *DeleteRunner) Run(ctx context.Context, opts DeleteOptions) error
Run executes the delete command.
type DiffOptions ¶
type DiffOptions struct {
Name string // Optional: diff only this item, otherwise diff all
ParseJSON bool
NoPager bool
}
DiffOptions holds options for the diff command.
type DiffRunner ¶
type DiffRunner struct {
UseCase *stagingusecase.DiffUseCase
Stdout io.Writer
Stderr io.Writer
}
DiffRunner executes diff operations using a usecase.
func (*DiffRunner) Run ¶
func (r *DiffRunner) Run(ctx context.Context, opts DiffOptions) error
Run executes the diff command.
type EditOptions ¶
type EditOptions struct {
Name string
Value string // Optional: if set, skip editor and use this value
Description string
}
EditOptions holds options for the edit command.
type EditRunner ¶
type EditRunner struct {
UseCase *stagingusecase.EditUseCase
Stdout io.Writer
Stderr io.Writer
OpenEditor editor.OpenFunc // Optional: defaults to editor.Open if nil
}
EditRunner executes edit operations using a usecase.
func (*EditRunner) Run ¶
func (r *EditRunner) Run(ctx context.Context, opts EditOptions) error
Run executes the edit command.
type ResetOptions ¶
type ResetOptions struct {
Spec string // Name with optional version spec
All bool // Reset all staged items for this service
}
ResetOptions holds options for the reset command.
type ResetRunner ¶
type ResetRunner struct {
UseCase *stagingusecase.ResetUseCase
Stdout io.Writer
Stderr io.Writer
}
ResetRunner executes reset operations using a usecase.
func (*ResetRunner) Run ¶
func (r *ResetRunner) Run(ctx context.Context, opts ResetOptions) error
Run executes the reset command.
type StatusOptions ¶
StatusOptions holds options for the status command.
type StatusRunner ¶
type StatusRunner struct {
UseCase *stagingusecase.StatusUseCase
Stdout io.Writer
Stderr io.Writer
}
StatusRunner executes status operations using a usecase.
func (*StatusRunner) Run ¶
func (r *StatusRunner) Run(ctx context.Context, opts StatusOptions) error
Run executes the status command.
type TagOptions ¶ added in v0.3.0
TagOptions holds options for the tag command.
type TagRunner ¶ added in v0.3.0
type TagRunner struct {
UseCase *stagingusecase.TagUseCase
Stdout io.Writer
Stderr io.Writer
}
TagRunner executes tag staging operations using a usecase.
type UntagOptions ¶ added in v0.3.0
UntagOptions holds options for the untag command.
type UntagRunner ¶ added in v0.3.0
type UntagRunner struct {
UseCase *stagingusecase.TagUseCase
Stdout io.Writer
Stderr io.Writer
}
UntagRunner executes untag staging operations using a usecase.
func (*UntagRunner) Run ¶ added in v0.3.0
func (r *UntagRunner) Run(ctx context.Context, opts UntagOptions) error
Run executes the untag command.