Documentation ¶
Index ¶
- type Cli
- func (c *Cli) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *Cli) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *Cli) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (c *Cli) EnsurePrefix(name string) string
- func (c *Cli) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (c *Cli) HasScenarioPrefix(name string) bool
- func (c *Cli) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *Cli) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *Cli) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
func (*Cli) Create ¶
Create saves the object obj in the Kubernetes cluster. obj must be a struct pointer so that obj can be updated with the content returned by the Server.
func (*Cli) DeleteAllOf ¶
func (c *Cli) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf deletes all objects of the given type matching the given options. Deprecated: Use c.Client.DeleteAllOf directly. This function is needed for using this struct in controllerutil.CreateOrUpdate.
func (*Cli) EnsurePrefix ¶
func (*Cli) Get ¶
func (c *Cli) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error
Get retrieves an obj for the given object key from the Kubernetes Cluster. obj must be a struct pointer so that obj can be updated with the response returned by the Server.
func (*Cli) HasScenarioPrefix ¶
func (*Cli) List ¶
func (c *Cli) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List retrieves list of objects for a given namespace and list options. On a successful call, Items field in the list will be populated with the result returned from the server. Deprecated: Use c.Client.List directly. This function is needed for using this struct in controllerutil.CreateOrUpdate.