package cluster

import "k8s.io/kubernetes/federation/registry/cluster"

Index

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) *generic.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

PathSynopsis
federation/registry/cluster/etcd
Version
v1.4.0-beta.5
Published
Sep 15, 2016
Platform
js/wasm
Imports
11 packages
Last checked
31 seconds ago

Tools for package owners.