k8s

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 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 Newk8sClient

func Newk8sClient() (*Client, error)

func (*Client) ConfigMap

func (c *Client) ConfigMap(ns string) v12.ConfigMapInterface

func (*Client) DeleteNode

func (c *Client) DeleteNode(name string) error

func (*Client) GetClusterVersion

func (c *Client) GetClusterVersion() (*version.Info, error)

func (*Client) GetEndpointsList

func (c *Client) GetEndpointsList(namespace string) (*v1.EndpointsList, error)

func (*Client) ListAllNamespacesPods

func (c *Client) ListAllNamespacesPods() ([]*NamespacePod, error)

func (*Client) ListAllNamespacesSvcs

func (c *Client) ListAllNamespacesSvcs() ([]*NamespaceSvc, error)

func (*Client) ListKubeSystemPodsStatus

func (c *Client) ListKubeSystemPodsStatus() (bool, error)

func (*Client) ListNodeIPByLabel

func (c *Client) ListNodeIPByLabel(label string) ([]net.IP, error)

func (*Client) ListNodes

func (c *Client) ListNodes() (*v1.NodeList, error)

func (*Client) ListNodesByLabel

func (c *Client) ListNodesByLabel(label string) (*v1.NodeList, error)

func (*Client) ListSvcs

func (c *Client) ListSvcs(namespace string) (*v1.ServiceList, error)

func (*Client) UpdateNode

func (c *Client) UpdateNode(node v1.Node) (*v1.Node, error)

type NamespacePod

type NamespacePod struct {
	Namespace v1.Namespace
	PodList   *v1.PodList
}

type NamespaceSvc

type NamespaceSvc struct {
	Namespace   v1.Namespace
	ServiceList *v1.ServiceList
}

Jump to

Keyboard shortcuts

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