objectstore

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicCache

type DynamicCache struct {
	// contains filtered or unexported fields
}

DynamicCache is a cache based on the dynamic shared informer factory.

func NewDynamicCache

func NewDynamicCache(ctx context.Context, client cluster.ClientInterface, options ...DynamicCacheOpt) (*DynamicCache, error)

NewDynamicCache creates an instance of DynamicCache.

func (*DynamicCache) Get

Get retrieves a single object.

func (*DynamicCache) HasAccess

func (dc *DynamicCache) HasAccess(ctx context.Context, key store.Key, verb string) error

HasAccess returns an error if the current user does not have access to perform the verb action for the given key.

func (*DynamicCache) IsLoading added in v0.6.0

func (dc *DynamicCache) IsLoading(ctx context.Context, key store.Key) bool

func (*DynamicCache) List

List lists objects.

func (*DynamicCache) RegisterOnUpdate

func (dc *DynamicCache) RegisterOnUpdate(fn store.UpdateFn)

func (*DynamicCache) Update

func (dc *DynamicCache) Update(ctx context.Context, key store.Key, updater func(*unstructured.Unstructured) error) error

func (*DynamicCache) UpdateClusterClient

func (dc *DynamicCache) UpdateClusterClient(ctx context.Context, client cluster.ClientInterface) error

UpdateClusterClient updates the cluster client.

func (*DynamicCache) Watch

func (dc *DynamicCache) Watch(ctx context.Context, key store.Key, handler kcache.ResourceEventHandler) error

Watch watches the cluster for an event and performs actions with the supplied handler.

type DynamicCacheOpt

type DynamicCacheOpt func(*DynamicCache)

DynamicCacheOpt is an option for configuration DynamicCache.

Jump to

Keyboard shortcuts

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