k8s

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotImplementedYetErr = Error("function / feature not implemented yet")
	NotFoundErr          = Error("resource not found")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

type K8sClient

type K8sClient struct {
	Client *kubernetes.Clientset
}

func NewKubeClient

func NewKubeClient() (*K8sClient, error)

func (*K8sClient) DeletePod

func (kc *K8sClient) DeletePod(name string, namespace string) error

func (*K8sClient) GetPods

func (kc *K8sClient) GetPods(namespace string, deplName string) (*coreV1.PodList, error)

Jump to

Keyboard shortcuts

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