Documentation
¶
Index ¶
- type KubeCLient
- func (k *KubeCLient) CreateClientSet() *kubernetes.Clientset
- func (k *KubeCLient) CreateSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret) *v1.Secret
- func (k *KubeCLient) DeletePod(c *kubernetes.Clientset, namespace, podname string)
- func (k *KubeCLient) DeleteSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret)
- func (k *KubeCLient) GetAllNamespaceNames(c *kubernetes.Clientset) []string
- func (k *KubeCLient) GetAllPodNames(c *kubernetes.Clientset, namespace string) []string
- func (k *KubeCLient) GetConfigmap(c *kubernetes.Clientset, namespace, cmname string) *v1.ConfigMap
- func (k *KubeCLient) GetSecret(c *kubernetes.Clientset, namespace, secretname string) *v1.Secret
- func (k *KubeCLient) GetSecretData(c *kubernetes.Clientset, namespace, secretname, datafield string) []byte
- func (k *KubeCLient) UpdateSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret) *v1.Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeCLient ¶
type KubeCLient struct{}
func (*KubeCLient) CreateClientSet ¶
func (k *KubeCLient) CreateClientSet() *kubernetes.Clientset
create a Kubernetes clientset for cluster auth
func (*KubeCLient) CreateSecret ¶
func (k *KubeCLient) CreateSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret) *v1.Secret
create a new kubernetes secret
func (*KubeCLient) DeletePod ¶
func (k *KubeCLient) DeletePod(c *kubernetes.Clientset, namespace, podname string)
delete a specific kubernetes pod based on the podname
func (*KubeCLient) DeleteSecret ¶
func (k *KubeCLient) DeleteSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret)
delete kubernetes secret
func (*KubeCLient) GetAllNamespaceNames ¶
func (k *KubeCLient) GetAllNamespaceNames(c *kubernetes.Clientset) []string
get all namespace names and return in a slice of type string
func (*KubeCLient) GetAllPodNames ¶
func (k *KubeCLient) GetAllPodNames(c *kubernetes.Clientset, namespace string) []string
get all pod names and return in a slice of type string
func (*KubeCLient) GetConfigmap ¶
func (k *KubeCLient) GetConfigmap(c *kubernetes.Clientset, namespace, cmname string) *v1.ConfigMap
get specific kubernetes configmap based on the configmap name
func (*KubeCLient) GetSecret ¶
func (k *KubeCLient) GetSecret(c *kubernetes.Clientset, namespace, secretname string) *v1.Secret
get specific kubernetes secret based on the secret name
func (*KubeCLient) GetSecretData ¶
func (k *KubeCLient) GetSecretData(c *kubernetes.Clientset, namespace, secretname, datafield string) []byte
get kubernetes secret data field
func (*KubeCLient) UpdateSecret ¶
func (k *KubeCLient) UpdateSecret(c *kubernetes.Clientset, namespace string, secret *v1.Secret) *v1.Secret
update an specific kubernetes secret
Click to show internal directories.
Click to hide internal directories.