Documentation ¶
Index ¶
- func GetRestConfig() (*rest.Config, error)
- type Client
- func (c *Client) ApplyCrd(crd v1.CustomResourceDefinition) error
- func (c *Client) DeleteCrd(name string) error
- func (c *Client) FetchCrds() error
- func (c *Client) FetchGroup(groupPath string) error
- func (c *Client) GetCrd(name string) *v1.CustomResourceDefinition
- func (c *Client) GetCrds() []v1.CustomResourceDefinition
- func (c *Client) GetGroup() string
- func (c *Client) ListResources(crd v1.CustomResourceDefinition) ([]unstructured.Unstructured, error)
- type ClientInt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestConfig ¶
Types ¶
type Client ¶
type Client struct { Clientset ext.Interface DynamicClient dynamic.Interface // contains filtered or unexported fields }
func (*Client) FetchGroup ¶
func (*Client) GetCrds ¶
func (c *Client) GetCrds() []v1.CustomResourceDefinition
func (*Client) ListResources ¶
func (c *Client) ListResources(crd v1.CustomResourceDefinition) ([]unstructured.Unstructured, error)
type ClientInt ¶
type ClientInt interface { ApplyCrd(crd v1.CustomResourceDefinition) error DeleteCrd(name string) error FetchCrds() error GetCrds() []v1.CustomResourceDefinition GetGroup() string GetCrd(name string) *v1.CustomResourceDefinition ListResources(crd v1.CustomResourceDefinition) ([]unstructured.Unstructured, error) FetchGroup(groupPath string) error }
Click to show internal directories.
Click to hide internal directories.