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.
Click to show internal directories.
Click to hide internal directories.