Documentation ¶
Index ¶
- type Client
- func (c *Client) Apply(g *SpecGroup) error
- func (c *Client) Deployments() typedappsv1beta1.DeploymentInterface
- func (c *Client) IsMinikube() (bool, error)
- func (c *Client) Namespace(namespace string) *Client
- func (c *Client) Nodes() typedcorev1.NodeInterface
- func (c *Client) Services() typedcorev1.ServiceInterface
- type SpecGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *kubernetes.Clientset // contains filtered or unexported fields }
Client is a wrapper type around the kubernetes client.
func (*Client) Deployments ¶
func (c *Client) Deployments() typedappsv1beta1.DeploymentInterface
Deployments is a shortcut to the deployment client which uses the configured namespace.
func (*Client) IsMinikube ¶
IsMinikube checks if the configured cluster is running on minikube. Although not ideal, some logic must be changed when interacting with a minikube cluster. ex: LoadBalancer services never get an externalIP.
func (*Client) Nodes ¶
func (c *Client) Nodes() typedcorev1.NodeInterface
Nodes is a shortcut to the node client.
func (*Client) Services ¶
func (c *Client) Services() typedcorev1.ServiceInterface
Services is a shortcut to the service client which uses the configured namespace.
type SpecGroup ¶
type SpecGroup struct { Deployments []*appsv1beta1.Deployment Services []*apicorev1.Service }
SpecGroup is a collection of specs that are logically linked.
Click to show internal directories.
Click to hide internal directories.