Documentation
¶
Index ¶
- func CheckIfAuthInfoExist(kubeConfig *clientcmdApi.Config, authInfo string) error
- func CheckIfClusterExist(kubeConfig *clientcmdApi.Config, cluster string) error
- func CheckIfContextExist(kubeConfig *clientcmdApi.Config, context string) error
- func GetAuthInfosKeys(auths map[string]*clientcmdApi.AuthInfo) []string
- func GetClustersKeys(clusters map[string]*clientcmdApi.Cluster) []string
- func GetContextsKeys(contexts map[string]*clientcmdApi.Context) []string
- func GetKubeConfigEnvVar() string
- func GetKubeConfigPathDefault(home string) string
- func GetSingleConfigsPathDefault(home string) string
- func ListContexts(kubeConfig *clientcmdApi.Config) []string
- func Load(kubeConfigFilePath string) *clientcmdApi.Config
- func PrintOnLogs(kCfg *clientcmdApi.Config, isDebug bool)
- func RemoveAuthInfo(authMap map[string]*clientcmdApi.AuthInfo, authInfo string) (map[string]*clientcmdApi.AuthInfo, error)
- func RemoveCluster(clMap map[string]*clientcmdApi.Cluster, cluster string) (map[string]*clientcmdApi.Cluster, error)
- func RemoveContext(ctxMap map[string]*clientcmdApi.Context, context string) (map[string]*clientcmdApi.Context, error)
- func Split(kubeConfig *clientcmdApi.Config, kubeConfigFilePath string) map[string]*clientcmdApi.Config
- func Validate(kubeConfig *clientcmdApi.Config) error
- func Write(kubeConfig *clientcmdApi.Config, filepath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfAuthInfoExist ¶
func CheckIfAuthInfoExist(kubeConfig *clientcmdApi.Config, authInfo string) error
func CheckIfClusterExist ¶
func CheckIfClusterExist(kubeConfig *clientcmdApi.Config, cluster string) error
func CheckIfContextExist ¶
func CheckIfContextExist(kubeConfig *clientcmdApi.Config, context string) error
func GetAuthInfosKeys ¶
func GetAuthInfosKeys(auths map[string]*clientcmdApi.AuthInfo) []string
func GetClustersKeys ¶
func GetClustersKeys(clusters map[string]*clientcmdApi.Cluster) []string
func GetContextsKeys ¶
func GetContextsKeys(contexts map[string]*clientcmdApi.Context) []string
func GetKubeConfigEnvVar ¶
func GetKubeConfigEnvVar() string
func ListContexts ¶
func ListContexts(kubeConfig *clientcmdApi.Config) []string
func Load ¶
func Load(kubeConfigFilePath string) *clientcmdApi.Config
func PrintOnLogs ¶
func PrintOnLogs(kCfg *clientcmdApi.Config, isDebug bool)
PrintOnLogs is for development and debugging purposes only
func RemoveAuthInfo ¶
func RemoveAuthInfo(authMap map[string]*clientcmdApi.AuthInfo, authInfo string) (map[string]*clientcmdApi.AuthInfo, error)
func RemoveCluster ¶
func RemoveCluster(clMap map[string]*clientcmdApi.Cluster, cluster string) (map[string]*clientcmdApi.Cluster, error)
func RemoveContext ¶
func RemoveContext(ctxMap map[string]*clientcmdApi.Context, context string) (map[string]*clientcmdApi.Context, error)
func Split ¶
func Split(kubeConfig *clientcmdApi.Config, kubeConfigFilePath string) map[string]*clientcmdApi.Config
func Validate ¶
func Validate(kubeConfig *clientcmdApi.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.