kubernetes

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 12 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(kubeConfig string) (*Client, error)

func (*Client) CordonNode added in v0.0.1

func (c *Client) CordonNode(ctx context.Context, node *v1.Node) (*v1.Node, error)

func (*Client) DeletePod added in v0.0.1

func (c *Client) DeletePod(ctx context.Context, pod v1.Pod, deleteOptions metav1.DeleteOptions) error

func (*Client) Deployments

func (c *Client) Deployments(ctx context.Context) (*appv1.DeploymentList, error)

func (*Client) DetermineNewPod added in v0.0.1

func (c *Client) DetermineNewPod(ctx context.Context, oldPod v1.Pod) (*v1.Pod, error)

func (*Client) Node added in v0.0.1

func (c *Client) Node(ctx context.Context, nodeName string) (*v1.Node, error)

func (*Client) Nodes added in v0.0.3

func (c *Client) Nodes(ctx context.Context, labelSelector fields.Selector) (*v1.NodeList, error)

func (*Client) PodsOnNode added in v0.0.1

func (c *Client) PodsOnNode(ctx context.Context, nodeName string) (*v1.PodList, error)

func (*Client) StatefulSets

func (c *Client) StatefulSets(ctx context.Context) (*appv1.StatefulSetList, error)

func (*Client) UpdateDeployment

func (c *Client) UpdateDeployment(ctx context.Context, d *appv1.Deployment) error

func (*Client) UpdateStatefulSet

func (c *Client) UpdateStatefulSet(ctx context.Context, s *appv1.StatefulSet) error

func (*Client) WaitForPodToBeReady added in v0.0.1

func (c *Client) WaitForPodToBeReady(ctx context.Context, pod *v1.Pod) error

Jump to

Keyboard shortcuts

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