cluster

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusStrategy = clusterStatusStrategy{Strategy}
View Source
var Strategy = clusterStrategy{api.Scheme, api.SimpleNameGenerator}

Functions

func ClusterToSelectableFields

func ClusterToSelectableFields(cluster *federation.Cluster) fields.Set

func MatchCluster

func MatchCluster(label labels.Selector, field fields.Selector) generic.Matcher

Types

type Registry

type Registry interface {
	ListClusters(ctx api.Context, options *api.ListOptions) (*federation.ClusterList, error)
	WatchCluster(ctx api.Context, options *api.ListOptions) (watch.Interface, error)
	GetCluster(ctx api.Context, name string) (*federation.Cluster, error)
	CreateCluster(ctx api.Context, cluster *federation.Cluster) error
	UpdateCluster(ctx api.Context, cluster *federation.Cluster) error
	DeleteCluster(ctx api.Context, name string) error
}

Registry is an interface implemented by things that know how to store Cluster objects.

func NewRegistry

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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