Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInstance ¶
func SetInstance(kc Connection)
SetInstance allows the user to set the kubeClient singleton
Types ¶
type Connection ¶
type Connection struct { Client kubernetes.Interface DynamicClient dynamic.Interface RESTMapper meta.RESTMapper }
Connection holds a kubernetes.interface as the Client parameter
func GetConfigInstance ¶
func GetConfigInstance(context, kubeConfigPath string) *Connection
GetConfigInstance returns a Kubernetes interface based on the current configuration
func SetAndGetMock ¶
func SetAndGetMock() *Connection
SetAndGetMock sets the singleton's interface to use a fake ClientSet
Click to show internal directories.
Click to hide internal directories.