kube

package
v0.0.0-...-61190b0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 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 Deployment

type Deployment interface {
	GetDeployment(namespace, deploymentName string) (*v1.Deployment, error)
	GetDeploymentList(namespace, LabelSelector string) (*v1.DeploymentList, error)
}

Deployment Deployment

type Ingress

type Ingress interface {
	GetIngress(ingressName, namespace string) (*networkingv1.Ingress, error)
	GetIngresses(namespace, labelSelector string) (*networkingv1.IngressList, error)
}

Ingress interface

type Job

type Job interface {
	GetJobByName(namespace, jobName string) (*v1.Job, error)
}

type Kube

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

Kube struct

var KUBE Kube

KUBE Kube

func (*Kube) CreateNamespace

func (e *Kube) CreateNamespace(namespaceName string) (*corev1.Namespace, error)

CreateNamespace Create a Namespace

func (*Kube) GetConfigMap

func (e *Kube) GetConfigMap(configMapName, namespace string) (*corev1.ConfigMap, error)

GetConfigMap is get a ConfigMap

func (*Kube) GetDeployment

func (e *Kube) GetDeployment(namespace, deploymentName string) (*v1.Deployment, error)

GetDeployment is get a Deployment

func (*Kube) GetDeploymentList

func (e *Kube) GetDeploymentList(namespace, LabelSelector string) (*v1.DeploymentList, error)

GetDeploymentList is get a GetDeploymentList

func (*Kube) GetIngress

func (e *Kube) GetIngress(ingressName, namespace string) (*networkingv1.Ingress, error)

GetIngress is get a Ingress

func (*Kube) GetIngresses

func (e *Kube) GetIngresses(namespace, labelSelector string) (*networkingv1.IngressList, error)

GetIngresses is get list of Ingress

func (*Kube) GetJobByName

func (e *Kube) GetJobByName(namespace, jobName string) (*v1.Job, error)

func (*Kube) GetNamespace

func (e *Kube) GetNamespace(namespace string) (*corev1.Namespace, error)

GetNamespace is get a pod info

func (*Kube) GetNamespaces

func (e *Kube) GetNamespaces() (*corev1.NamespaceList, error)

GetNamespaces is get a pod info

func (*Kube) GetNodes

func (e *Kube) GetNodes(labelSelector string) (*corev1.NodeList, error)

GetNodes is get a node list

func (*Kube) GetPod

func (e *Kube) GetPod(podName, namespace string) (*corev1.Pod, error)

GetPod is get a pod info

func (*Kube) GetPodLogs

func (e *Kube) GetPodLogs(namespace, podName string, args *PodLogArgs) (io.ReadCloser, error)

GetPodLogs GetPodLogs

func (*Kube) GetPods

func (e *Kube) GetPods(namespace, LabelSelector string) (*corev1.PodList, error)

GetPods is get pod list info

func (*Kube) GetServices

func (e *Kube) GetServices(namespace, labelSelector string) (*corev1.ServiceList, error)

GetServices is get Services list

func (*Kube) GetSts

func (e *Kube) GetSts(namespace, stsName string) (*v1.StatefulSet, error)

GetSts gets a StatefulSet

func (*Kube) GetStsList

func (e *Kube) GetStsList(namespace, LabelSelector string) (*v1.StatefulSetList, error)

GetStsList gets a StatefulSet lis

type Log

type Log interface {
	GetPodLogs(namespace, podName string, args *PodLogArgs) (io.ReadCloser, error)
}

Log interface

type Namespace

type Namespace interface {
	GetNamespace(namespace string) (*corev1.Namespace, error)
	GetNamespaces() (*corev1.NamespaceList, error)
	CreateNamespace(namespaceName string) (*corev1.Namespace, error)
}

Namespace interface

type Node

type Node interface {
	GetNodes(labelSelector string) (*corev1.NodeList, error)
}

Node interface

type Pod

type Pod interface {
	GetPod(podName, namespace string) (*corev1.Pod, error)
	GetPods(namespace, LabelSelector string) (*corev1.PodList, error)
}

Pod interface

type PodLogArgs

type PodLogArgs struct {
	Container                    string
	Follow                       bool
	Previous                     bool
	SinceSeconds                 *int64
	SinceTime                    time.Time
	Timestamps                   bool
	TailLines                    *int64
	LimitBytes                   *int64
	InsecureSkipTLSVerifyBackend bool
}

type Services

type Services interface {
	GetServices(namespace, labelSelector string) (*corev1.ServiceList, error)
}

Services interface

type Sts

type Sts interface {
	GetSts(namespace, stsName string) (*v1.StatefulSet, error)
	GetStsList(namespace, LabelSelector string) (*v1.StatefulSetList, error)
}

Sts StatefulSet

Jump to

Keyboard shortcuts

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