Documentation ¶
Index ¶
- type KubernetesClient
- func (c KubernetesClient) Apply(ctx context.Context, obj client.Object) error
- func (c KubernetesClient) Create(ctx context.Context, obj client.Object) error
- func (c *KubernetesClient) Delete(ctx context.Context, obj client.Object, opts handler.DeleteOptions) error
- func (c KubernetesClient) Get(ctx context.Context, obj client.Object) (*unstructured.Unstructured, error)
- func (c KubernetesClient) List(ctx context.Context, gvk schema.GroupVersionKind, ...) (*unstructured.UnstructuredList, error)
- func (c KubernetesClient) PatchStatus(ctx context.Context, obj client.Object) error
- type Owner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesClient ¶
type KubernetesClient struct {
// contains filtered or unexported fields
}
func NewKubernetesClient ¶
func NewKubernetesClient(c client.Client, owner Owner) (*KubernetesClient, error)
func (*KubernetesClient) Delete ¶
func (c *KubernetesClient) Delete(ctx context.Context, obj client.Object, opts handler.DeleteOptions) error
Delete deletes the given object (not found errors are ignored).
func (KubernetesClient) Get ¶
func (c KubernetesClient) Get(ctx context.Context, obj client.Object) (*unstructured.Unstructured, error)
Get gets the given object.
func (KubernetesClient) List ¶
func (c KubernetesClient) List(ctx context.Context, gvk schema.GroupVersionKind, listOpts ...client.ListOption) (*unstructured.UnstructuredList, error)
List lists all resources of the given kind.
func (KubernetesClient) PatchStatus ¶
Click to show internal directories.
Click to hide internal directories.