v1beta2

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Index

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)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL