kube

package
v0.0.0-...-c1bfec5 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KuberneteClient

type KuberneteClient struct {
	Client *kubernetes.Clientset
}

func NewInKubernetesClient

func NewInKubernetesClient() (*KuberneteClient, error)

NewInKubernetesClient - To init an internal k8s client

func NewOutKubernetesClient

func NewOutKubernetesClient(kubeConfigPath string) (*KuberneteClient, error)

NewOutKubernetesClient - To init an external k8s client

func (*KuberneteClient) DeletePods

func (s *KuberneteClient) DeletePods(pods *v1.PodList) error

DeletePods - To delete a list of pods

func (*KuberneteClient) ListPods

func (s *KuberneteClient) ListPods(namespace string, opts metav1.ListOptions) (*v1.PodList, error)

ListPods - To list all k8s pods

func (*KuberneteClient) ListSecrets

func (s *KuberneteClient) ListSecrets(namespace string, opts metav1.ListOptions) (*v1.SecretList, error)

ListSecrets - To list all k8s secrets

func (*KuberneteClient) UpdateSecret

func (s *KuberneteClient) UpdateSecret(updatedSecret *v1.Secret) error

UpdateSecret - To update a given secret

Jump to

Keyboard shortcuts

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