factory

package
v0.0.0-...-f16ff2c Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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.

type DBClient

type DBClient interface {
	informer.DBClient
	sqlStore.DBClient
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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