Documentation ¶
Index ¶
- func BuildClusterSelector(clusterSet *clusterv1beta2.ManagedClusterSet) (labels.Selector, error)
- func GetBoundManagedClusterSetBindings(namespace string, clusterSetBindingsGetter ManagedClusterSetBindingsGetter) ([]*clusterv1beta2.ManagedClusterSetBinding, error)
- func GetClusterSetsOfCluster(cluster *v1.ManagedCluster, clusterSetsGetter ManagedClusterSetsGetter) ([]*clusterv1beta2.ManagedClusterSet, error)
- func GetClustersFromClusterSet(clusterSet *clusterv1beta2.ManagedClusterSet, ...) ([]*v1.ManagedCluster, error)
- type ManagedClusterSetBindingsGetter
- type ManagedClusterSetsGetter
- type ManagedClustersGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildClusterSelector ¶
func BuildClusterSelector(clusterSet *clusterv1beta2.ManagedClusterSet) (labels.Selector, error)
func GetBoundManagedClusterSetBindings ¶
func GetBoundManagedClusterSetBindings(namespace string, clusterSetBindingsGetter ManagedClusterSetBindingsGetter) ([]*clusterv1beta2.ManagedClusterSetBinding, error)
GetBoundManagedClusterSetBindings returns all bindings that are bounded to clustersets in the given namespace.
func GetClusterSetsOfCluster ¶
func GetClusterSetsOfCluster(cluster *v1.ManagedCluster, clusterSetsGetter ManagedClusterSetsGetter) ([]*clusterv1beta2.ManagedClusterSet, error)
GetClusterSetsOfClusterByCluster return the managedClusterSets of a managedCluster
func GetClustersFromClusterSet ¶
func GetClustersFromClusterSet(clusterSet *clusterv1beta2.ManagedClusterSet, clustersGetter ManagedClustersGetter) ([]*v1.ManagedCluster, error)
GetClustersFromClusterSet return the ManagedClusterSet's managedClusters
Types ¶
type ManagedClusterSetBindingsGetter ¶
type ManagedClusterSetBindingsGetter interface {
List(namespace string, selector labels.Selector) (ret []*clusterv1beta2.ManagedClusterSetBinding, err error)
}
type ManagedClusterSetsGetter ¶
type ManagedClusterSetsGetter interface {
List(selector labels.Selector) (ret []*clusterv1beta2.ManagedClusterSet, err error)
}
type ManagedClustersGetter ¶
type ManagedClustersGetter interface {
List(selector labels.Selector) (ret []*v1.ManagedCluster, err error)
}
Click to show internal directories.
Click to hide internal directories.