Documentation ¶
Index ¶
- func NewCacheClient(config *rest.Config, options client.Options) (client.Client, error)
- type CacheClient
- func (c *CacheClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *CacheClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *CacheClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *CacheClient) Status() client.StatusWriter
- func (c *CacheClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type CacheStatusClient
- func (c *CacheStatusClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (c *CacheStatusClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *CacheStatusClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheClient ¶
CacheClient makes sure that the Create/Update/Patch/Delete functions block until the local cache is updated
func (*CacheClient) Create ¶
func (c *CacheClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*CacheClient) Delete ¶
func (c *CacheClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*CacheClient) Patch ¶
func (c *CacheClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*CacheClient) Status ¶
func (c *CacheClient) Status() client.StatusWriter
func (*CacheClient) Update ¶
func (c *CacheClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type CacheStatusClient ¶
type CacheStatusClient struct {
Cache *CacheClient
}
CacheStatusClient makes sure that the Update/Patch functions block until the local cache is updated
func (*CacheStatusClient) Create ¶ added in v0.14.0
func (c *CacheStatusClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
func (*CacheStatusClient) Patch ¶
func (c *CacheStatusClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
func (*CacheStatusClient) Update ¶
func (c *CacheStatusClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Click to show internal directories.
Click to hide internal directories.