Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorParams ¶
type OperatorParams struct { KubeCfgPath string ClientConfig clientcmd.ClientConfig NewKubeClient func() (kubernetes.Interface, error) NewOperatorClient func() (*versioned.Clientset, error) }
OperatorParams stores the configs for interacting with kube api
func (*OperatorParams) GetClientConfig ¶
func (params *OperatorParams) GetClientConfig() (clientcmd.ClientConfig, error)
GetClientConfig gets ClientConfig from KubeCfgPath
func (*OperatorParams) Initialize ¶
func (params *OperatorParams) Initialize() error
Initialize generate the clientset for params
func (*OperatorParams) RestConfig ¶
func (params *OperatorParams) RestConfig() (*rest.Config, error)
RestConfig returns REST config, which can be to use to create specific clientset
Click to show internal directories.
Click to hide internal directories.