k8sclient

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClient

type K8sClient struct {
	kubernetes.Interface
}

func NewClient

func NewClient() (*K8sClient, error)

func (*K8sClient) CreatePod

func (k *K8sClient) CreatePod(pod *corev1.Pod) (*corev1.Pod, error)

func (*K8sClient) DeletePod

func (k *K8sClient) DeletePod(pod *corev1.Pod) error

func (*K8sClient) GetPod

func (k *K8sClient) GetPod(podName, namespace string) (*corev1.Pod, error)

func (*K8sClient) PatchPod

func (k *K8sClient) PatchPod(pod *corev1.Pod, data []byte) error

func (*K8sClient) UpdatePod

func (k *K8sClient) UpdatePod(pod *corev1.Pod) error

Jump to

Keyboard shortcuts

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