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)
Click to show internal directories.
Click to hide internal directories.