package cluster
import "k8s.io/kubernetes/federation/registry/cluster"
Index ¶
- Variables
- func ClusterToSelectableFields(cluster *federation.Cluster) fields.Set
- func MatchCluster(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate
- type Registry
Variables ¶
var StatusStrategy = clusterStatusStrategy{Strategy}
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) apistorage.SelectionPredicate
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.
Source Files ¶
registry.go strategy.go
Directories ¶
Path | Synopsis |
---|---|
federation/registry/cluster/etcd |
- Version
- v1.5.2-beta.0
- Published
- Dec 14, 2016
- Platform
- windows/amd64
- Imports
- 12 packages
- Last checked
- 12 minutes ago –
Tools for package owners.