blockingcacheclient

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

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)

func NewCacheClientBuilder

func NewCacheClientBuilder() manager.ClientBuilder

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 CacheClientBuilder

type CacheClientBuilder struct{}

func (*CacheClientBuilder) Build

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

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

Jump to

Keyboard shortcuts

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