Documentation
¶
Index ¶
- func NewCacheStore(keyFn cache.KeyFunc) cache.Indexer
- type ProjectCache
- func (p *ProjectCache) GetNamespace(name string) (*kapi.Namespace, error)
- func (p *ProjectCache) GetNodeSelector(namespace *kapi.Namespace) string
- func (p *ProjectCache) GetNodeSelectorMap(namespace *kapi.Namespace) (map[string]string, error)
- func (c *ProjectCache) Run(stopCh <-chan struct{})
- func (c *ProjectCache) Running() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheStore ¶ added in v1.1.2
func NewCacheStore(keyFn cache.KeyFunc) cache.Indexer
NewCacheStore creates an Indexer store with the given key function
Types ¶
type ProjectCache ¶
type ProjectCache struct {
Client kcoreclient.NamespaceInterface
Store cache.Indexer
HasSynced cache.InformerSynced
DefaultNodeSelector string
}
func NewFake ¶ added in v1.1.2
func NewFake(c kcoreclient.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 kcoreclient.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)
Click to show internal directories.
Click to hide internal directories.