Documentation ¶
Index ¶
- type Deployment
- type Ingress
- type Job
- type Kube
- func (e *Kube) CreateNamespace(namespaceName string) (*corev1.Namespace, error)
- func (e *Kube) GetConfigMap(configMapName, namespace string) (*corev1.ConfigMap, error)
- func (e *Kube) GetDeployment(namespace, deploymentName string) (*v1.Deployment, error)
- func (e *Kube) GetDeploymentList(namespace, LabelSelector string) (*v1.DeploymentList, error)
- func (e *Kube) GetIngress(ingressName, namespace string) (*networkingv1.Ingress, error)
- func (e *Kube) GetIngresses(namespace, labelSelector string) (*networkingv1.IngressList, error)
- func (e *Kube) GetJobByName(namespace, jobName string) (*v1.Job, error)
- func (e *Kube) GetNamespace(namespace string) (*corev1.Namespace, error)
- func (e *Kube) GetNamespaces() (*corev1.NamespaceList, error)
- func (e *Kube) GetNodes(labelSelector string) (*corev1.NodeList, error)
- func (e *Kube) GetPod(podName, namespace string) (*corev1.Pod, error)
- func (e *Kube) GetPodLogs(namespace, podName string, args *PodLogArgs) (io.ReadCloser, error)
- func (e *Kube) GetPods(namespace, LabelSelector string) (*corev1.PodList, error)
- func (e *Kube) GetServices(namespace, labelSelector string) (*corev1.ServiceList, error)
- func (e *Kube) GetSts(namespace, stsName string) (*v1.StatefulSet, error)
- func (e *Kube) GetStsList(namespace, LabelSelector string) (*v1.StatefulSetList, error)
- type Log
- type Namespace
- type Node
- type Pod
- type PodLogArgs
- type Services
- type Sts
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 Kube ¶
type Kube struct {
// contains filtered or unexported fields
}
Kube struct
var KUBE Kube
KUBE Kube
func (*Kube) CreateNamespace ¶
CreateNamespace Create a Namespace
func (*Kube) GetConfigMap ¶
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) GetNamespace ¶
GetNamespace is get a pod info
func (*Kube) GetNamespaces ¶
func (e *Kube) GetNamespaces() (*corev1.NamespaceList, error)
GetNamespaces is get a pod info
func (*Kube) GetPodLogs ¶
func (e *Kube) GetPodLogs(namespace, podName string, args *PodLogArgs) (io.ReadCloser, error)
GetPodLogs GetPodLogs
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 Pod ¶
type Pod interface { GetPod(podName, namespace string) (*corev1.Pod, error) GetPods(namespace, LabelSelector string) (*corev1.PodList, error) }
Pod interface
type PodLogArgs ¶
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
Click to show internal directories.
Click to hide internal directories.