kubernetes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 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 Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clientSet kubernetes.Interface) Client

func (Client) CreatePod

func (c Client) CreatePod(ctx context.Context, ns string, pod *v1.Pod) error

func (Client) DeletePod

func (c Client) DeletePod(ctx context.Context, ns string, name string) error

func (Client) GetContainerLog

func (c Client) GetContainerLog(ctx context.Context, ns string, podName string, containerName string) (string, error)

func (Client) GetPod

func (c Client) GetPod(ctx context.Context, name string, ns string) (*v1.Pod, error)

func (Client) ListCronJobs

func (c Client) ListCronJobs(ctx context.Context) ([]batchv1.CronJob, error)

func (Client) ListDaemonSets

func (c Client) ListDaemonSets(ctx context.Context) ([]appv1.DaemonSet, error)

func (Client) ListDeployments

func (c Client) ListDeployments(ctx context.Context) ([]appv1.Deployment, error)

func (Client) ListNodes

func (c Client) ListNodes(ctx context.Context) ([]v1.Node, error)

func (Client) ListPodsByLabel

func (c Client) ListPodsByLabel(ctx context.Context, label *metav1.LabelSelector) ([]v1.Pod, error)

func (Client) ListStatefulSets

func (c Client) ListStatefulSets(ctx context.Context) ([]appv1.StatefulSet, error)

func (Client) WaitUntilCompleted

func (c Client) WaitUntilCompleted(namespace string, podName string) error

Jump to

Keyboard shortcuts

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