Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteDeployment(namespace, name string) error
- func (c *Client) DeleteReplicaSet(namespace, name string) error
- func (c *Client) DeleteStatefulSet(namespace, name string) error
- func (c *Client) GetDeployment(namespace, name string) (*mapping.Deployment, error)
- func (c *Client) ListDeployments(namespace string, listOptions metav1.ListOptions) ([]*mapping.Deployment, error)
- func (c *Client) ListReplicaSets(namespace string, listOptions metav1.ListOptions) ([]*mapping.ReplicaSet, error)
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 ¶
DeleteDeployment deletes a Deployment object.
func (*Client) DeleteReplicaSet ¶
DeleteReplicaSet deletes a ReplicaSet object.
func (*Client) DeleteStatefulSet ¶
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>.
Click to show internal directories.
Click to hide internal directories.