Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProjectCache ¶
type ProjectCache struct { Client corev1client.NamespaceInterface Store cache.Indexer HasSynced cache.InformerSynced DefaultNodeSelector string }
func NewFake ¶ added in v1.1.2
func NewFake(c corev1client.NamespaceInterface, store cache.Indexer, defaultNodeSelector string) *ProjectCache
NewFake is used for testing purpose only
func NewProjectCache ¶ added in v1.1.2
func NewProjectCache(namespaces cache.SharedIndexInformer, client corev1client.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) (*corev1.Namespace, error)
func (*ProjectCache) Run ¶ added in v1.1.2
func (c *ProjectCache) Run(stopCh <-chan struct{})
Run waits until the cache has synced.
func (*ProjectCache) Running ¶ added in v1.1.2
func (c *ProjectCache) Running() bool
Running determines if the cache is initialized and running
Click to show internal directories.
Click to hide internal directories.