kubernetesv18

package
v0.0.0-...-133fb1b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 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 Client

type Client struct {
	*kubernetesv17.Client
}

Client inherits all the attributes and methods of the v1.7 client. Please see the documentation of the base client for further details.

func New

func New(config *rest.Config, clientset *kubernetes.Clientset, clientConfig clientcmd.ClientConfig) (*Client, error)

New returns a new Kubernetes v1.8 client.

func (*Client) CheckCRDCleanup

func (c *Client) CheckCRDCleanup(exceptions map[string]bool) (bool, error)

CheckCRDCleanup will check whether all the CRDs in the cluster other than those stored in the exceptions map <exceptions> have been deleted. It will return an error in case it has not finished yet, and nil if all resources are gone.

func (*Client) CheckDaemonSetCleanup

func (c *Client) CheckDaemonSetCleanup(exceptions map[string]bool) (bool, error)

CheckDaemonSetCleanup will check whether all the DaemonSets in the Shoot cluster other than those stored in the exceptions map <exceptions> have been deleted. It will return an error in case it has not finished yet, and nil if all resources are gone.

func (*Client) CheckDeploymentCleanup

func (c *Client) CheckDeploymentCleanup(exceptions map[string]bool) (bool, error)

CheckDeploymentCleanup will check whether all the Deployments in the cluster other than those stored in the exceptions map <exceptions> have been deleted. It will return an error in case it has not finished yet, and nil if all resources are gone.

func (*Client) CheckReplicaSetCleanup

func (c *Client) CheckReplicaSetCleanup(exceptions map[string]bool) (bool, error)

CheckReplicaSetCleanup will check whether all the ReplicaSets in the cluster other than those stored in the exceptions map <exceptions> have been deleted. It will return an error in case it has not finished yet, and nil if all resources are gone.

func (*Client) CheckStatefulSetCleanup

func (c *Client) CheckStatefulSetCleanup(exceptions map[string]bool) (bool, error)

CheckStatefulSetCleanup will check whether all the StatefulSets in the Shoot cluster other than those stored in the exceptions map <exceptions> have been deleted. It will return an error in case it has not finished yet, and nil if all resources are gone.

func (*Client) CleanupCRDs

func (c *Client) CleanupCRDs(exceptions map[string]bool) error

CleanupCRDs deletes all the TPRs/CRDs in the cluster other than those stored in the exceptions map <exceptions>.

func (*Client) CleanupDaemonSets

func (c *Client) CleanupDaemonSets(exceptions map[string]bool) error

CleanupDaemonSets deletes all the DaemonSets in the Shoot cluster other than those stored in the exceptions map <exceptions>.

func (*Client) CleanupDeployments

func (c *Client) CleanupDeployments(exceptions map[string]bool) error

CleanupDeployments deletes all the Deployments in the cluster other than those stored in the exceptions map <exceptions>.

func (*Client) CleanupReplicaSets

func (c *Client) CleanupReplicaSets(exceptions map[string]bool) error

CleanupReplicaSets deletes all the ReplicaSets in the cluster other than those stored in the exceptions map <exceptions>.

func (*Client) CleanupStatefulSets

func (c *Client) CleanupStatefulSets(exceptions map[string]bool) error

CleanupStatefulSets deletes all the StatefulSets in the Shoot cluster other than those stored in the exceptions map <exceptions>.

func (*Client) DeleteDeployment

func (c *Client) DeleteDeployment(namespace, name string) error

DeleteDeployment deletes a Deployment object.

func (*Client) DeleteReplicaSet

func (c *Client) DeleteReplicaSet(namespace, name string) error

DeleteReplicaSet deletes a ReplicaSet object.

func (*Client) DeleteStatefulSet

func (c *Client) DeleteStatefulSet(namespace, name string) error

DeleteStatefulSet deletes a StatefulSet object.

func (*Client) GetDeployment

func (c *Client) GetDeployment(namespace, name string) (*mapping.Deployment, error)

GetDeployment returns a Deployment object.

func (*Client) ListDeployments

func (c *Client) ListDeployments(namespace string, listOptions metav1.ListOptions) ([]*mapping.Deployment, error)

ListDeployments returns the list of Deployments in the given <namespace>.

func (*Client) ListReplicaSets

func (c *Client) ListReplicaSets(namespace string, listOptions metav1.ListOptions) ([]*mapping.ReplicaSet, error)

ListReplicaSets returns the list of ReplicaSets in the given <namespace>.

func (*Client) ListRoleBindings

func (c *Client) ListRoleBindings(namespace string, selector metav1.ListOptions) ([]*mapping.RoleBinding, error)

ListRoleBindings returns a list of rolebindings in a given <namespace>. The selection can be restricted by passsing an <selector>.

Jump to

Keyboard shortcuts

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