cache

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeProjectCache

func FakeProjectCache(c client.Interface, store cache.Store, defaultNodeSelector string)

Used for testing purpose only

func RunProjectCache

func RunProjectCache(c client.Interface, defaultNodeSelector string)

Types

type ProjectCache

type ProjectCache struct {
	Client              client.Interface
	Store               cache.Store
	DefaultNodeSelector string
}

func GetProjectCache

func GetProjectCache() (*ProjectCache, error)

func (*ProjectCache) GetNamespaceObject

func (p *ProjectCache) GetNamespaceObject(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)

Jump to

Keyboard shortcuts

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