package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 17, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GetContext returns the Kubernetes context
GetKubeconfig returns the kubeconfig path
GetNamespace returns the default namespace
GetOutput returns the output format
SetDefaults sets default configuration values
type Config struct {
Kubeconfig string `mapstructure:"kubeconfig"`
Context string `mapstructure:"context"`
Namespace string `mapstructure:"namespace"`
Output string `mapstructure:"output"`
}
Config represents the cdctl configuration
Load loads the configuration from viper
Source Files
¶
Click to show internal directories.
Click to hide internal directories.