config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendBackoffConfig

type BackendBackoffConfig struct {
	MaxTries uint `mapstructure:"maxTries"`
}

BackendBackoffConfig holds backoff configuration for backend communication.

type BackendConfig

type BackendConfig struct {
	Backoff BackendBackoffConfig `mapstructure:"backoff"`
}

BackendConfig holds backend and backoff configuration.

type Config

type Config struct {
	K8s     K8sConfig     `mapstructure:"k8s"`
	Backend BackendConfig `mapstructure:"backend"`
}

Config holds the configuration for the application.

type K8sConfig

type K8sConfig struct {
	K3sKubectlPath     string `mapstructure:"k3sKubectlPath"`
	K3sKubeConfigPath  string `mapstructure:"k3sKubeConfigPath"`
	Rke2KubectlPath    string `mapstructure:"rke2KubectlPath"`
	Rke2KubeConfigPath string `mapstructure:"rke2KubeConfigPath"`
}

K8sConfig holds Kubernetes-related configuration paths.

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader loads configuration and holds logger.

func NewConfigLoader

func NewConfigLoader(log *zap.SugaredLogger) *Loader

NewConfigLoader creates a new Loader with the given logger.

func (*Loader) Load

func (cl *Loader) Load(cmd *cobra.Command) Config

Load loads config using viper or returns defaults.

Jump to

Keyboard shortcuts

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