Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, data interface{}, opts metav1.CreateOptions) (*unstructured.Unstructured, error)
- func (c *Client) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *Client) Get(ctx context.Context, name string, opts metav1.GetOptions) (*unstructured.Unstructured, error)
- func (c *Client) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (c *Client) Patch(ctx context.Context, name string, pt types.PatchType, date []byte, ...) (*unstructured.Unstructured, error)
- func (c *Client) Update(ctx context.Context, data interface{}, opts metav1.UpdateOptions) (*unstructured.Unstructured, error)
- func (c *Client) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.4
type Client struct { Client *dynamic.DynamicClient Namespace string GVR schema.GroupVersionResource }
func (*Client) Create ¶ added in v0.1.4
func (c *Client) Create(ctx context.Context, data interface{}, opts metav1.CreateOptions) (*unstructured.Unstructured, error)
func (*Client) Get ¶ added in v0.1.4
func (c *Client) Get(ctx context.Context, name string, opts metav1.GetOptions) (*unstructured.Unstructured, error)
func (*Client) List ¶ added in v0.1.4
func (c *Client) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (*Client) Patch ¶ added in v0.1.4
func (c *Client) Patch(ctx context.Context, name string, pt types.PatchType, date []byte, opts metav1.PatchOptions) ( *unstructured.Unstructured, error, )
func (*Client) Update ¶ added in v0.1.4
func (c *Client) Update(ctx context.Context, data interface{}, opts metav1.UpdateOptions) ( *unstructured.Unstructured, error)
Click to show internal directories.
Click to hide internal directories.