Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIOptions ¶
type CLIOptions struct {
// Config is the operator configuration initialized from the CLI flags.
Config *druidconfigv1alpha1.OperatorConfiguration
// contains filtered or unexported fields
}
CLIOptions provides convenience abstraction to initialize and validate OperatorConfiguration from CLI flags.
func NewCLIOptions ¶
func NewCLIOptions(fs *flag.FlagSet, logger logr.Logger) *CLIOptions
NewCLIOptions creates a new CLIOptions and adds the required CLI flags to the flag.flagSet.
func (*CLIOptions) Complete ¶
func (o *CLIOptions) Complete() error
Complete reads the configuration file and decodes it into an OperatorConfiguration.
func (*CLIOptions) Validate ¶
func (o *CLIOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.