package
0.10.0
Repository: https://github.com/authzed/controller-idioms.git
Documentation: pkg.go.dev

# Functions

IndexerFor returns a typed Indexer from a Registry Deprecated: Use MustIndexerForKey instead.
IndexerForKey returns a typed Indexer from a Registry, or an error if the key is not found.
IndexerListToTypedList is a helper that converts a list of unstructured to a particular type.
ListerFor returns a typed Lister from a Registry Deprecated: Use MustListerForKey instead.
ListerForKey returns a typed Lister from a Registry, or an error if the key is not found.
MustIndexerForKey returns a typed Indexer from a Registry, or panics if the key is not found.
MustListerForKey returns a typed Lister from a Registry, or panics if the key is not found.
NewFactoryKey generates a simple FactoryKey from an id for the controller, the cluster it watches, and an extra value.
NewIndexer creates an Indexer from a cache.Indexer.
NewLister returns a Lister for a cache.GenericLister.
NewRegistry returns a new, empty Registry.
NewRegistryKey creates a RegistryKey from a FactoryKey.
ObjToUnstructuredObj is a helper that converts a typed object to unstructured.
UnstructuredListToTypeList is a helper that converts a list of unstructured to a particular type.
UnstructuredObjToTypedObj is a helper that converts an unstructured object to a particular type.

# Structs

Indexer provides a generically typed interface for cache.Index It assumes the objects are unstructured.Unstructured, as you would get from a dynamic informer.
Lister provides a generically typed interface for cache.GenericLister It assumes the objects are unstructured.Unstructured, as you would get from a dynamic informer.
NamespaceLister provides a generically typed interface for cache.GenericNamespaceLister.
Registry is a threadsafe map of DynamicSharedInformerFactory By registering informer factories with the registry, handlers from other controllers can easily access the cached resources held by the informer.
RegistryKey identifies a specific GVR within a factory provided by a Registry.

# Type aliases

FactoryKey gives a name to a SharedInformerFactory.