Documentation ¶
Index ¶
- func GetK0sClientSet() (*kubernetes.Clientset, error)
- func GetK0sKubeConfig() string
- func GetK3sClientSet() (*kubernetes.Clientset, error)
- func GetK3sKubeConfig() string
- func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig
- func NewClientSet(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetK0sClientSet ¶ added in v0.2.0
func GetK0sClientSet() (*kubernetes.Clientset, error)
GetK0sClientSet returns the kubernetes Clientset
func GetK0sKubeConfig ¶ added in v0.2.0
func GetK0sKubeConfig() string
GetK0sKubeConfig returns the kubeconfig path
func GetK3sClientSet ¶ added in v0.2.0
func GetK3sClientSet() (*kubernetes.Clientset, error)
GetK3sClientSet returns the kubernetes Clientset
func GetK3sKubeConfig ¶ added in v0.2.0
func GetK3sKubeConfig() string
GetK3sKubeConfig returns the kubeconfig path
func NewClientConfig ¶
func NewClientConfig(configPath string, contextName string) clientcmd.ClientConfig
NewClientConfig returns a new Kubernetes client config set for a context
func NewClientSet ¶
func NewClientSet(clientConfig clientcmd.ClientConfig) (*kubernetes.Clientset, error)
NewClientSet returns a new Kubernetes client for a client config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.