api

package
v0.0.0-...-0beb169 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	K8State_All        string = ""
	K8State_Waiting           = "Waiting"
	K8State_Running           = "Running"
	K8State_Terminated        = "Terminated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeApi

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

func NewKubeApi

func NewKubeApi() *KubeApi

func (*KubeApi) GetDaemonSet

func (k *KubeApi) GetDaemonSet(namespace string, name string) (*appsv1.DaemonSet, error)

func (*KubeApi) GetDaemonSetList

func (k *KubeApi) GetDaemonSetList(namespace string) (*appsv1.DaemonSetList, error)

func (*KubeApi) GetDaemonSets

func (k *KubeApi) GetDaemonSets(namespace string, tag string) ([]*appsv1.DaemonSet, error)

func (*KubeApi) GetDeployment

func (k *KubeApi) GetDeployment(namespace string, name string) (*appsv1.Deployment, error)

func (*KubeApi) GetDeploymentList

func (k *KubeApi) GetDeploymentList(namespace string) (*appsv1.DeploymentList, error)

func (*KubeApi) GetDeployments

func (k *KubeApi) GetDeployments(namespace string, tag string) ([]*appsv1.Deployment, error)

func (*KubeApi) GetNode

func (k *KubeApi) GetNode(name string) (*v1.Node, error)

func (*KubeApi) GetNodeList

func (k *KubeApi) GetNodeList() (*v1.NodeList, error)

func (*KubeApi) GetNodes

func (k *KubeApi) GetNodes(tag string) ([]*v1.Node, error)

func (*KubeApi) GetPod

func (k *KubeApi) GetPod(namespace string, name string) (*v1.Pod, error)

func (*KubeApi) GetPodList

func (k *KubeApi) GetPodList(namespace string) (*v1.PodList, error)

func (*KubeApi) GetPods

func (k *KubeApi) GetPods(namespace string, tag string) ([]*v1.Pod, error)

func (*KubeApi) GetService

func (k *KubeApi) GetService(namespace string, name string) (*v1.Service, error)

func (*KubeApi) GetServiceList

func (k *KubeApi) GetServiceList(namespace string) (*v1.ServiceList, error)

func (*KubeApi) GetServices

func (k *KubeApi) GetServices(namespace string, tag string) ([]*v1.Service, error)

func (*KubeApi) InitKube

func (k *KubeApi) InitKube() error

func (*KubeApi) WatchDaemonSetList

func (k *KubeApi) WatchDaemonSetList(namespace string) (watch.Interface, error)

func (*KubeApi) WatchDeploymentList

func (k *KubeApi) WatchDeploymentList(namespace string) (watch.Interface, error)

func (*KubeApi) WatchNodeList

func (k *KubeApi) WatchNodeList() (watch.Interface, error)

func (*KubeApi) WatchPodList

func (k *KubeApi) WatchPodList(namespace string) (watch.Interface, error)

func (*KubeApi) WatchServiceList

func (k *KubeApi) WatchServiceList(namespace string) (watch.Interface, error)

Jump to

Keyboard shortcuts

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