blockingcacheclient

package
v0.22.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheClient

func NewCacheClient(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) 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 (*CacheStatusClient) Update

Jump to

Keyboard shortcuts

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