kubernetesv19

package
v0.0.0-...-b43e092 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0, MIT Imports: 9 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 {
	*kubernetesv18.Client
}

Client inherits all the attributes and methods of the v1.8 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.9 client.

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) PatchDeployment

func (c *Client) PatchDeployment(namespace, name string, body []byte) (*mapping.Deployment, error)

PatchDeployment patches a Deployment object.

Jump to

Keyboard shortcuts

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