Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusStrategy = clusterStatusStrategy{Strategy}
View Source
var Strategy = clusterStrategy{api.Scheme, names.SimpleNameGenerator}
Functions ¶
func ClusterToSelectableFields ¶
func ClusterToSelectableFields(cluster *federation.Cluster) fields.Set
func GetAttrs ¶ added in v1.6.0
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.
Click to show internal directories.
Click to hide internal directories.