root

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(scheme *runtime.Scheme, configFile string) (*configv1alpha1.ProjectConfig, ctrl.Options, error)

LoadConfig initializes the controller configuration, optionally overriding the defaults from a provided configuration file.

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates a new cobra root command.

Types

type RootConfig

type RootConfig struct {
	Options    ctrl.Options
	CtrlConfig configv1alpha1.ProjectConfig
}

RootConfig contains configuration relevant for all commands.

type RootConfigKey

type RootConfigKey struct{}

RootConfigKey contains the key to RootConfig in the context object.

Jump to

Keyboard shortcuts

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