blockingcacheclient

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheClient

func NewCacheClient(cache cache.Cache, config *rest.Config, options client.Options) (client.Client, error)

Types

type CacheClient

type CacheClient struct {
	client.Client
	// contains filtered or unexported fields
}

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) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL