Documentation ¶
Index ¶
- Constants
- func GetK8sClientConfig(kubeConfig []byte) (*rest.Config, error)
- func NewClientByContent(kubeConfig []byte, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)
- func NewClientByFile(kubeConfigPath string, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)
- type WrapTransport
Constants ¶
View Source
const (
K8sWrapTransportTimeout = 30
)
Variables ¶
This section is empty.
Functions ¶
func NewClientByContent ¶
func NewClientByContent(kubeConfig []byte, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)
func NewClientByFile ¶
func NewClientByFile(kubeConfigPath string, k8sWrapTransport WrapTransport) (*kubernetes.Clientset, error)
Types ¶
type WrapTransport ¶
type WrapTransport func(rt http.RoundTripper) http.RoundTripper
Click to show internal directories.
Click to hide internal directories.