Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidConfig is wrapped within all errors from this pkg, and can be // used by downstream to identify errors ErrInvalidConfig = errors.New("invalid backup config") ErrInvalidProvider = fmt.Errorf("%w: invalid provider", ErrInvalidConfig) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Name of Selected provider Selected string // contains filtered or unexported fields }
Config holds the flag configuration for all providers
func (*Config) AddToFlagSet ¶
AddToFlagSet adds config's (and its providers') flagsets to fs
func (*Config) CreateSelectedProvider ¶
func (*Config) GetEnvVars ¶
GetEnvVars converts the complete flagset into a list of k8s environment variable objects. Assumes config's flagset is present within fs, and assumes fs has been parsed.
Click to show internal directories.
Click to hide internal directories.