Documentation
¶
Index ¶
- type KuberneteClient
- func (s *KuberneteClient) DeletePods(pods *v1.PodList) error
- func (s *KuberneteClient) ListPods(namespace string, opts metav1.ListOptions) (*v1.PodList, error)
- func (s *KuberneteClient) ListSecrets(namespace string, opts metav1.ListOptions) (*v1.SecretList, error)
- func (s *KuberneteClient) UpdateSecret(updatedSecret *v1.Secret) error
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
Click to show internal directories.
Click to hide internal directories.