Documentation
¶
Index ¶
- type Client
- func (c *Client) Apply(ctx context.Context, obj runtime.ApplyConfiguration, ...) error
- func (c *Client) Create(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.CreateOption) error
- func (c *Client) Delete(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteOption) error
- func (c *Client) DeleteAllOf(ctx context.Context, obj ctrlclient.Object, ...) error
- func (c *Client) Get(ctx context.Context, key ctrlclient.ObjectKey, obj ctrlclient.Object, ...) error
- func (c *Client) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (c *Client) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (c *Client) List(ctx context.Context, list ctrlclient.ObjectList, opts ...ctrlclient.ListOption) error
- func (c *Client) Patch(ctx context.Context, obj ctrlclient.Object, patch ctrlclient.Patch, ...) error
- func (c *Client) RESTMapper() meta.RESTMapper
- func (c *Client) Scheme() *runtime.Scheme
- func (c *Client) Set(client ctrlclient.Client)
- func (c *Client) Status() ctrlclient.SubResourceWriter
- func (c *Client) SubResource(subResource string) ctrlclient.SubResourceClient
- func (c *Client) Update(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.UpdateOption) 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
}
Client is a wrapper around a controller-runtime client that allows for refreshing the internal client. This is useful for e2e tests where the client needs to be refreshed after a change in the cluster because e.g. the tunnel needs to be recreated.
func (*Client) Apply ¶
func (c *Client) Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...ctrlclient.ApplyOption) error
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.CreateOption) error
func (*Client) Delete ¶
func (c *Client) Delete(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteOption) error
func (*Client) DeleteAllOf ¶
func (c *Client) DeleteAllOf(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.DeleteAllOfOption) error
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, key ctrlclient.ObjectKey, obj ctrlclient.Object, opts ...ctrlclient.GetOption) error
func (*Client) GroupVersionKindFor ¶
func (*Client) IsObjectNamespaced ¶
func (*Client) List ¶
func (c *Client) List(ctx context.Context, list ctrlclient.ObjectList, opts ...ctrlclient.ListOption) error
func (*Client) Patch ¶
func (c *Client) Patch(ctx context.Context, obj ctrlclient.Object, patch ctrlclient.Patch, opts ...ctrlclient.PatchOption) error
func (*Client) RESTMapper ¶
func (c *Client) RESTMapper() meta.RESTMapper
func (*Client) Set ¶
func (c *Client) Set(client ctrlclient.Client)
func (*Client) Status ¶
func (c *Client) Status() ctrlclient.SubResourceWriter
func (*Client) SubResource ¶
func (c *Client) SubResource(subResource string) ctrlclient.SubResourceClient
func (*Client) Update ¶
func (c *Client) Update(ctx context.Context, obj ctrlclient.Object, opts ...ctrlclient.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.