Documentation
¶
Index ¶
- func BuildConfigFromFlags(context, kubeconfigPath string) (*rest.Config, error)
- type KubeConfig
- func (k KubeConfig) CheckNamespaceExist() error
- func (k KubeConfig) CreateNSIfNotExist() error
- func (k KubeConfig) CreateSecret(secretSpec map[string][]byte, secretName string) error
- func (k KubeConfig) GetServiceInfo(svcName string) []string
- func (k KubeConfig) GetServiceInfoByLabels(labelsMap map[string]string) []string
- func (k KubeConfig) HasSecret(name string) bool
- func (k KubeConfig) InitClient() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeConfig ¶
func GetKubeClient ¶
func GetKubeClient(namespace, context string) (*KubeConfig, error)
func (KubeConfig) CheckNamespaceExist ¶
func (k KubeConfig) CheckNamespaceExist() error
func (KubeConfig) CreateNSIfNotExist ¶
func (k KubeConfig) CreateNSIfNotExist() error
func (KubeConfig) CreateSecret ¶
func (k KubeConfig) CreateSecret(secretSpec map[string][]byte, secretName string) error
func (KubeConfig) GetServiceInfo ¶
func (k KubeConfig) GetServiceInfo(svcName string) []string
func (KubeConfig) GetServiceInfoByLabels ¶
func (k KubeConfig) GetServiceInfoByLabels(labelsMap map[string]string) []string
func (KubeConfig) HasSecret ¶
func (k KubeConfig) HasSecret(name string) bool
func (KubeConfig) InitClient ¶
func (k KubeConfig) InitClient() error
Click to show internal directories.
Click to hide internal directories.