Documentation ¶
Overview ¶
Package cache provides object caches that act as caching client.Reader instances and help drive Kubernetes-object-based event handlers. The code is forked from controller-runtime's cache package and has been modified to support dynamic addition and removal of informers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuilderWithOptions ¶
func BuilderWithOptions(options cache.Options) cache.NewCacheFunc
BuilderWithOptions returns a Cache constructor that will build the a cache honoring the options argument, this is useful to specify options like SelectorsByObject WARNING: if SelectorsByObject is specified. filtered out resources are not
returned.
Types ¶
type ErrCacheNotStarted ¶
type ErrCacheNotStarted struct{}
ErrCacheNotStarted is returned when trying to read from the cache that wasn't started.
func (*ErrCacheNotStarted) Error ¶
func (*ErrCacheNotStarted) Error() string
type NewCacheFunc ¶
NewCacheFunc - Function for creating a new cache from the options and a rest config.
func MultiNamespacedCacheBuilder ¶
func MultiNamespacedCacheBuilder(namespaces []string) NewCacheFunc
MultiNamespacedCacheBuilder - Builder function to create a new multi-namespaced cache. This will scope the cache to a list of namespaces. Listing for all namespaces will list for all the namespaces that this knows about. By default this will create a global cache for cluster scoped resource. Note that this is not intended to be used for excluding namespaces, this is better done via a Predicate. Also note that you may face performance issues when using this with a high number of namespaces.