Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteFromPath(path string, params ...string) (string, error)
- func (c *Client) DeleteResource(name, res, ns string) (string, error)
- func (c *Client) DeleteResources(res, ns string) (string, error)
- func (c *Client) DeleteResourcesInAllNamespaces(res string) (string, error)
- func (c *Client) GetIngresses() ([]Ingress, error)
- func (c *Client) GetLoadBalancers() ([]string, error)
- func (c *Client) GetPersistentVolumes() ([]string, error)
- func (c *Client) HasResourceType(typ string) (bool, error)
- func (c *Client) ListNamespaceResources(resName, ns string) ([]Resource, error)
- func (c *Client) ResourceExists(name, res, ns string) (bool, error)
- func (c *Client) ToolVersion() (string, error)
- type Ingress
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteFromPath ¶
func (*Client) DeleteResource ¶
DeleteResource deletes the specified resource in the specified namespace.
func (*Client) DeleteResources ¶
DeleteResources deletes the specified resources in the specified namespace.
func (*Client) DeleteResourcesInAllNamespaces ¶
DeleteResourcesInAllNamespaces deletes the specified resources in all namespaces.
func (*Client) GetIngresses ¶
GetIngresses returns a list of ingresses in the cluster, this is done by using the jsonpath format option of kubectl to get a valid json output to be unmarshalled.
func (*Client) GetLoadBalancers ¶
func (*Client) GetPersistentVolumes ¶
func (*Client) ListNamespaceResources ¶
func (*Client) ToolVersion ¶
Click to show internal directories.
Click to hide internal directories.