Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, object *unstructured.Unstructured) (err error)
- func (c *Client) Delete(ctx context.Context, name string) (err error)
- func (c *Client) Get(ctx context.Context, name string) (resp *unstructured.Unstructured, err error)
- func (c *Client) Update(ctx context.Context, object *unstructured.Unstructured) (err error)
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 NewClient ¶
func NewClient(kubeconfig string, namespace string, resource schema.GroupVersionResource) (c *Client, err error)
NewClient constructs a new dynamic Client.
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, object *unstructured.Unstructured) (err error)
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, name string) (resp *unstructured.Unstructured, err error)
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, object *unstructured.Unstructured) (err error)
Click to show internal directories.
Click to hide internal directories.