Documentation ¶
Overview ¶
Package factory provides an cache factory for the sql-based cache.
Index ¶
Constants ¶
View Source
const (
EncryptAllEnvVar = "CATTLE_ENCRYPT_CACHE_ALL"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
informer.ByOptionsLister
}
type CacheFactory ¶
type CacheFactory struct {
// contains filtered or unexported fields
}
CacheFactory builds Informer instances and keeps a cache of instances it created
func NewCacheFactory ¶
func NewCacheFactory() (*CacheFactory, error)
NewCacheFactory returns an informer factory instance
func (*CacheFactory) CacheFor ¶
func (f *CacheFactory) CacheFor(fields [][]string, client dynamic.ResourceInterface, gvk schema.GroupVersionKind, namespaced bool) (Cache, error)
CacheFor returns an informer for given GVK, using sql store indexed with fields, using the specified client
func (*CacheFactory) Reset ¶
func (f *CacheFactory) Reset() error
Reset closes the stopCh which stops any running informers, assigns a new stopCh, resets the GVK-informer cache, and resets the database connection which wipes any current sqlite database at the default location.
Click to show internal directories.
Click to hide internal directories.