e2e

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient

type KubeClient struct {
	Kube            *kubernetes.Clientset
	ClusterV1Client clientv1alpha1.ClusterV1alpha1Interface
}

KubeClient provides the interfaces to interact with the kubernetes clusters.

func NewKubeClient

func NewKubeClient(kubeconfig string) (*KubeClient, error)

NewKubeClient returns a new instance of the KubeClient object.

func (*KubeClient) GetCluster

func (kc *KubeClient) GetCluster(namespace string, name string) (*v1alpha1.Cluster, error)

GetCluster retrieved a custom Cluster resource.

func (*KubeClient) GetMachine

func (kc *KubeClient) GetMachine(namespace string, name string, options metav1.GetOptions) (*v1alpha1.Machine, error)

GetMachine retrieves a custom Machine resource.

func (*KubeClient) GetNode

func (kc *KubeClient) GetNode(name string) (*v1.Node, error)

GetNode retrieves a node resource.

func (*KubeClient) GetPod

func (kc *KubeClient) GetPod(namespace string, name string) (*v1.Pod, error)

GetPod retrieves a pod resource.

func (*KubeClient) ListMachine

func (kc *KubeClient) ListMachine(namespace string, options metav1.ListOptions) (*v1alpha1.MachineList, error)

ListMachine lists the custom Machine resources.

Jump to

Keyboard shortcuts

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