Version: v1.4.1 Latest Latest

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

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 10 Imported by: 0




This section is empty.


This section is empty.


func NewCacheStore added in v1.1.2

func NewCacheStore(keyFn cache.KeyFunc) cache.Indexer

NewCacheStore creates an Indexer store with the given key function


type ProjectCache

type ProjectCache struct {
	Client              client.NamespaceInterface
	Store               cache.Indexer
	DefaultNodeSelector string

func NewFake added in v1.1.2

func NewFake(c client.NamespaceInterface, store cache.Indexer, defaultNodeSelector string) *ProjectCache

NewFake is used for testing purpose only

func NewProjectCache added in v1.1.2

func NewProjectCache(client client.NamespaceInterface, defaultNodeSelector string) *ProjectCache

NewProjectCache returns a non-initialized ProjectCache. The cache needs to be run to begin functioning

func (*ProjectCache) GetNamespace added in v1.1.2

func (p *ProjectCache) GetNamespace(name string) (*kapi.Namespace, error)

func (*ProjectCache) GetNodeSelector

func (p *ProjectCache) GetNodeSelector(namespace *kapi.Namespace) string

func (*ProjectCache) GetNodeSelectorMap

func (p *ProjectCache) GetNodeSelectorMap(namespace *kapi.Namespace) (map[string]string, error)

func (*ProjectCache) Run added in v1.1.2

func (c *ProjectCache) Run()

Run builds the store that backs this cache and runs the backing reflector

func (*ProjectCache) Running added in v1.1.2

func (c *ProjectCache) Running() bool

Running determines if the cache is initialized and running

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL