Documentation
¶
Index ¶
- func IsNamespaced(gvr schema.GroupVersionResource, mapper meta.RESTMapper) (bool, error)
- type Client
- func (c *Client) Create(ctx context.Context, namespace string, obj, result runtime.Object, ...) (err error)
- func (c *Client) Delete(ctx context.Context, namespace, name string, opts metav1.DeleteOptions) error
- func (c *Client) DeleteCollection(ctx context.Context, namespace string, opts metav1.DeleteOptions, ...) error
- func (c *Client) Get(ctx context.Context, namespace, name string, result runtime.Object, ...) (err error)
- func (c *Client) List(ctx context.Context, namespace string, result runtime.Object, ...) (err error)
- func (c *Client) Patch(ctx context.Context, namespace, name string, pt types.PatchType, data []byte, ...) (err error)
- func (c *Client) Update(ctx context.Context, namespace string, obj, result runtime.Object, ...) (err error)
- func (c *Client) UpdateStatus(ctx context.Context, namespace string, obj, result runtime.Object, ...) (err error)
- func (c *Client) Watch(ctx context.Context, namespace string, opts metav1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNamespaced ¶
func IsNamespaced(gvr schema.GroupVersionResource, mapper meta.RESTMapper) (bool, error)
Types ¶
type Client ¶
type Client struct { RESTClient rest.Interface Namespaced bool GVR schema.GroupVersionResource Ctx context.Context Kubernetes kubernetes.Interface Config rest.Config // contains filtered or unexported fields }
func (*Client) DeleteCollection ¶
func (c *Client) DeleteCollection(ctx context.Context, namespace string, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
func (*Client) UpdateStatus ¶
Click to show internal directories.
Click to hide internal directories.