kube

package
v0.0.0-...-dc8d137 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL