Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OperatorConfig ¶
type OperatorConfig struct { SmbdContainerImage string `mapstructure:"smbd-container-image"` SmbdContainerName string `mapstructure:"smbd-container-name"` }
OperatorConfig is a type holding general configuration values. Most of the operator code that needs to reference configuration should do so via this type.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source is how external configuration sources populate the operator config.
func NewSource ¶
func NewSource() *Source
NewSource creates a new Source based on default configuration values.
func (*Source) Flags ¶
Flags returns a pflag FlagSet populated with flags based on the default configuration. If used, flags allow changing configuration values on the CLI. Once parsed these flags act as a configuration source.
func (*Source) Read ¶
func (s *Source) Read() (*OperatorConfig, error)
Read a new OperatorConfig from all available sources.
Click to show internal directories.
Click to hide internal directories.