Documentation ¶
Index ¶
- type KubeClient
- func (kc *KubeClient) GetCluster(namespace string, name string) (*v1alpha1.Cluster, error)
- func (kc *KubeClient) GetMachine(namespace string, name string, options metav1.GetOptions) (*v1alpha1.Machine, error)
- func (kc *KubeClient) GetNode(name string) (*v1.Node, error)
- func (kc *KubeClient) GetPod(namespace string, name string) (*v1.Pod, error)
- func (kc *KubeClient) ListMachine(namespace string, options metav1.ListOptions) (*v1alpha1.MachineList, error)
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 ¶
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) ListMachine ¶
func (kc *KubeClient) ListMachine(namespace string, options metav1.ListOptions) (*v1alpha1.MachineList, error)
ListMachine lists the custom Machine resources.
Click to show internal directories.
Click to hide internal directories.