Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindOptions ¶
func BindOptions(opts *RawOptions, cmd *cobra.Command) error
BindOptions binds CLI flags into RawOptions.
func NewCommand ¶
NewCommand builds the root cleanup-sweeper cobra command.
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
Options contains completed runtime options after validation and completion.
type RawOptions ¶
type RawOptions struct {
SubscriptionID string
PolicyFile string
Workflow string
DryRun bool
Wait bool
Parallelism int
ResourceGroups []string
}
RawOptions contains CLI flags before validation and normalization.
func DefaultOptions ¶
func DefaultOptions() *RawOptions
DefaultOptions returns the default CLI options.
func (*RawOptions) Validate ¶
func (o *RawOptions) Validate(_ context.Context) (*ValidatedOptions, error)
Validate validates and normalizes raw CLI options.
type ValidatedOptions ¶
type ValidatedOptions struct {
// contains filtered or unexported fields
}
ValidatedOptions wraps options that passed validation.
type WorkflowMode ¶
type WorkflowMode string
WorkflowMode selects which cleanup workflow implementation to run.
const ( // WorkflowRGOrdered runs ordered per-resource-group cleanup. WorkflowRGOrdered WorkflowMode = "rg-ordered" WorkflowSharedLeftovers WorkflowMode = "shared-leftovers" )
Click to show internal directories.
Click to hide internal directories.