Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // ListPods returns Pods running on the passed in node. ListPods(node *v1.Node) (*v1.PodList, error) // ListPods returns all Pods running ListAllPods() (*v1.PodList, error) // ListNodes returns a list of Nodes registered in the api server. ListNodes() (*v1.NodeList, error) // ListServiceAccounts returns a list of Service Accounts in a namespace ListServiceAccounts(namespace string) (*v1.ServiceAccountList, error) // GetDaemonSet returns details about DaemonSet with passed in name. GetDaemonSet(namespace, name string) (*appsv1.DaemonSet, error) // GetDeployment returns a given deployment in a namespace. GetDeployment(namespace, name string) (*appsv1.Deployment, error) // GetNode returns details about node with passed in name. GetNode(name string) (*v1.Node, error) // UpdateNode updates the node in the api server with the passed in info. UpdateNode(node *v1.Node) (*v1.Node, error) // DeleteNode deregisters node in the api server. DeleteNode(name string) error // SupportEviction queries the api server to discover if it supports eviction, and returns supported type if it is supported. SupportEviction() (string, error) // DeleteClusterRole deletes the passed in ClusterRole. DeleteClusterRole(role *rbacv1.ClusterRole) error // DeleteDaemonSet deletes the passed in DaemonSet. DeleteDaemonSet(ds *appsv1.DaemonSet) error // DeleteDeployment deletes the passed in Deployment. DeleteDeployment(ds *appsv1.Deployment) error // DeletePod deletes the passed in pod. DeletePod(pod *v1.Pod) error // DeleteServiceAccount deletes the passed in service account. DeleteServiceAccount(sa *v1.ServiceAccount) error // EvictPod evicts the passed in pod using the passed in api version. EvictPod(pod *v1.Pod, policyGroupVersion string) error // WaitForDelete waits until all pods are deleted. Returns all pods not deleted and an error on failure. WaitForDelete(logger *log.Entry, pods []v1.Pod, usingEviction bool) ([]v1.Pod, error) // UpdateDeployment updates a deployment to match the given specification. UpdateDeployment(namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error) }
Client interface models client for interacting with kubernetes api server
type NodeLister ¶
NodeLister is an interface implemented by Kubernetes clients that are able to list cluster nodes
Click to show internal directories.
Click to hide internal directories.