Documentation
¶
Overview ¶
Package tag provides the generic tag/untag commands shared by every provider (AWS SSM Parameter Store, AWS Secrets Manager, and future providers).
The command scaffolding (argument validation, tag parsing, provider wiring) lives here and is identical across providers; only the small per-provider Config (help text, resource noun, and provider.Tagger construction) varies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TagCommand ¶
TagCommand returns the generic tag command wired with the provider Config.
func UntagCommand ¶
UntagCommand returns the generic untag command wired with the provider Config.
Types ¶
type Config ¶
type Config struct {
// Usage is the one-line command usage string.
Usage string
// ArgsUsage is the positional-arguments usage string.
ArgsUsage string
// Description is the long help text.
Description string
// Noun is the resource word used in success messages ("parameter"/"secret").
Noun string
// UsageError is the error returned when required arguments are missing.
UsageError string
// NewTagger builds the provider's Tagger from the CLI context.
NewTagger func(ctx context.Context) (provider.Tagger, error)
}
Config holds the provider-specific configuration for the tag/untag commands.
Click to show internal directories.
Click to hide internal directories.