Documentation ¶
Index ¶
- func DepthLogging(err error, logType, msg string, obj interface{}, keysAndValues ...interface{})
- func LoadsKubeConfig(configFile string) (*rest.Config, error)
- func NewBasicKubeConfig(serverURL, clusterName, userName string, caCert []byte) *clientcmdapi.Config
- func NewKubeConfigWithCertificates(serverURL string, caCert, certificateData, keyData []byte) *clientcmdapi.Config
- func NewKubeConfigWithToken(serverURL, token string, caCert []byte) *clientcmdapi.Config
- func NewLeaseLock(leaseName, leaseNamespace, identity string, ...) rl.Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DepthLogging ¶ added in v0.2.0
DepthLogging uses depth to determine which call frame to log.
func LoadsKubeConfig ¶
LoadsKubeConfig tries to load kubeconfig from specified config file or in-cluster config
func NewBasicKubeConfig ¶
func NewBasicKubeConfig(serverURL, clusterName, userName string, caCert []byte) *clientcmdapi.Config
NewBasicKubeConfig creates a basic KubeConfig object
func NewKubeConfigWithCertificates ¶
func NewKubeConfigWithCertificates(serverURL string, caCert, certificateData, keyData []byte) *clientcmdapi.Config
NewKubeConfigWithCertificates creates a KubeConfig object with access to the API server using tls certificates
func NewKubeConfigWithToken ¶
func NewKubeConfigWithToken(serverURL, token string, caCert []byte) *clientcmdapi.Config
NewKubeConfigWithToken creates a KubeConfig object with access to the API server using a token
func NewLeaseLock ¶
func NewLeaseLock(leaseName, leaseNamespace, identity string, client coordinationv1client.LeasesGetter) rl.Interface
NewLeaseLock creates a LeaseLock
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.