Documentation
¶
Overview ¶
Package command provides read-only attachment owner-orphan inspection and bounded regeneration of declared image variants.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VariantDeclaration ¶
func VariantDeclaration(construct func(foundation.Resolver) (*attachments.Manager, error)) (cli.Declaration, error)
VariantDeclaration registers the command in the ordinary CLI registry as "attachment-variants". The manager is resolved after boot.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command holds parsed attachment inspection options.
type VariantCommand ¶
type VariantCommand struct {
// contains filtered or unexported fields
}
VariantCommand regenerates a collection's declared image variants for every ready attachment, in bounded batches until the collection is exhausted.
func ParseVariants ¶
func ParseVariants(args []string, help io.Writer) (VariantCommand, error)
ParseVariants validates the command before boot and performs no I/O.
func (VariantCommand) Run ¶
func (c VariantCommand) Run(ctx context.Context, manager *attachments.Manager, out io.Writer) error
Run reports counts and failed operation IDs only, never file contents, storage keys or error text. Any failed attachment makes the command fail after the whole collection was processed.