Documentation
¶
Index ¶
- type DynamicCache
- func (dc *DynamicCache) Get(ctx context.Context, key store.Key) (*unstructured.Unstructured, error)
- func (dc *DynamicCache) HasAccess(ctx context.Context, key store.Key, verb string) error
- func (dc *DynamicCache) IsLoading(ctx context.Context, key store.Key) bool
- func (dc *DynamicCache) List(ctx context.Context, key store.Key) (*unstructured.UnstructuredList, bool, error)
- func (dc *DynamicCache) RegisterOnUpdate(fn store.UpdateFn)
- func (dc *DynamicCache) Update(ctx context.Context, key store.Key, ...) error
- func (dc *DynamicCache) UpdateClusterClient(ctx context.Context, client cluster.ClientInterface) error
- func (dc *DynamicCache) Watch(ctx context.Context, key store.Key, handler kcache.ResourceEventHandler) error
- type DynamicCacheOpt
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 ¶
func (dc *DynamicCache) Get(ctx context.Context, key store.Key) (*unstructured.Unstructured, error)
Get retrieves a single object.
func (*DynamicCache) HasAccess ¶
HasAccess returns an error if the current user does not have access to perform the verb action for the given key.
func (*DynamicCache) List ¶
func (dc *DynamicCache) List(ctx context.Context, key store.Key) (*unstructured.UnstructuredList, bool, error)
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.
Click to show internal directories.
Click to hide internal directories.