Documentation ¶
Index ¶
- func GetAuthInfo(authInfoName string) (*api.AuthInfo, error)
- func GetContext(ctxName string) (*api.Context, error)
- func GetContextNames() ([]string, error)
- func GetCurrentContextName() (string, error)
- func GetKubeConfig() clientcmd.ClientConfig
- func GetServer(context string) (string, error)
- func HasContext(ctxName string) (bool, error)
- func MergeAllAndWrite(kubeconfigs []string) error
- func MergeAndWrite(newConfig string) error
- func SetCurrentContext(ctx string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContextNames ¶
GetContextNames returns a slice with the names of the contexts in the kubeconfig. The slice may be empty.
func GetCurrentContextName ¶
func GetKubeConfig ¶
func GetKubeConfig() clientcmd.ClientConfig
func HasContext ¶
func MergeAllAndWrite ¶
func MergeAndWrite ¶
func SetCurrentContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.