package cluster

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

Index

Variables

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

Functions

func ClusterToSelectableFields

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

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, bool, error)

GetAttrs returns labels and fields of a given object for filtering purposes.

func MatchCluster

func MatchCluster(label labels.Selector, field fields.Selector) apistorage.SelectionPredicate

Types

type Registry

type Registry interface {
	ListClusters(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (*federation.ClusterList, error)
	WatchCluster(ctx genericapirequest.Context, options *metainternalversion.ListOptions) (watch.Interface, error)
	GetCluster(ctx genericapirequest.Context, name string, options *metav1.GetOptions) (*federation.Cluster, error)
	CreateCluster(ctx genericapirequest.Context, cluster *federation.Cluster) error
	UpdateCluster(ctx genericapirequest.Context, cluster *federation.Cluster) error
	DeleteCluster(ctx genericapirequest.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.8.0
Published
Sep 28, 2017
Platform
darwin/amd64
Imports
16 packages
Last checked
46 seconds ago

Tools for package owners.