Documentation ¶
Index ¶
- func NewCacheClient(cache cache.Cache, config *rest.Config, options client.Options) (client.Client, error)
- func NewCacheClientBuilder() manager.ClientBuilder
- 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 CacheClientBuilder
- type CacheStatusClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheClient ¶
func NewCacheClientBuilder ¶
func NewCacheClientBuilder() manager.ClientBuilder
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 CacheClientBuilder ¶
type CacheClientBuilder struct{}
func (*CacheClientBuilder) WithUncached ¶
func (c *CacheClientBuilder) WithUncached(objs ...client.Object) manager.ClientBuilder
TODO: implement this
type CacheStatusClient ¶
type CacheStatusClient struct {
Cache *CacheClient
}
CacheStatusClient makes sure that the Update/Patch functions block until the local cache is updated
func (*CacheStatusClient) Patch ¶
func (c *CacheStatusClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*CacheStatusClient) Update ¶
func (c *CacheStatusClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.