opts

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL