Documentation ¶
Index ¶
- Constants
- func APIBindingBoundResourceValue(clusterName logicalcluster.Name, group, resource string) string
- func AddIfNotPresentOrDie(indexer cache.Indexer, toAdd cache.Indexers)
- func Append(indexers ...cache.Indexers) (cache.Indexers, error)
- func AppendOrDie(indexers ...cache.Indexers) cache.Indexers
- func ByIndex[T runtime.Object](indexer cache.Indexer, indexName, indexValue string) ([]T, error)
- func ClusterAndGroupResourceValue(clusterName logicalcluster.Name, groupResource schema.GroupResource) string
- func ClusterScoped() cache.Indexers
- func IndexAPIBindingByBoundResources(obj interface{}) ([]string, error)
- func IndexAPIBindingByClusterAndAcceptedClaimedGroupResources(obj interface{}) ([]string, error)
- func IndexAPIExportByIdentity(obj interface{}) ([]string, error)
- func IndexAPIExportBySecret(obj interface{}) ([]string, error)
- func IndexByLogicalCluster(obj interface{}) ([]string, error)
- func IndexByLogicalClusterAndNamespace(obj interface{}) ([]string, error)
- func IndexBySyncerFinalizerKey(obj interface{}) ([]string, error)
- func IndexSyncTargetsBySyncTargetKey(obj interface{}) ([]string, error)
- func NamespaceScoped() cache.Indexers
Constants ¶
const ( // APIExportByIdentity is the indexer name for retrieving APIExports by identity hash. APIExportByIdentity = "APIExportByIdentity" // APIExportBySecret is the indexer name for retrieving APIExports by APIExportBySecret = "APIExportSecret" )
const ( // ByLogicalCluster is the name for the index that indexes by an object's logical cluster. ByLogicalCluster = "kcp-global-byLogicalCluster" // ByLogicalClusterAndNamespace is the name for the index that indexes by an object's logical cluster and namespace. ByLogicalClusterAndNamespace = "kcp-global-byLogicalClusterAndNamespace" // BySyncerFinalizerKey is the name for the index that indexes by syncer finalizer label keys. BySyncerFinalizerKey = "bySyncerFinalizerKey" // APIBindingByClusterAndAcceptedClaimedGroupResources is the name for the index that indexes an APIBinding by its // cluster name and accepted claimed group resources. APIBindingByClusterAndAcceptedClaimedGroupResources = "byClusterAndAcceptedClaimedGroupResources" )
const APIBindingByBoundResources = "byBoundResources"
const (
SyncTargetsBySyncTargetKey = "SyncTargetsBySyncTargetKey"
)
Variables ¶
This section is empty.
Functions ¶
func APIBindingBoundResourceValue ¶ added in v0.9.0
func AddIfNotPresentOrDie ¶ added in v0.7.6
AddIfNotPresentOrDie tries to add everything from toAdd to indexer's indexers that does not already exist. It panics if it encounters an error.
func ByIndex ¶ added in v0.8.0
ByIndex returns all instances of T that match indexValue in indexName in indexer.
func ClusterAndGroupResourceValue ¶ added in v0.8.0
func ClusterAndGroupResourceValue(clusterName logicalcluster.Name, groupResource schema.GroupResource) string
ClusterAndGroupResourceValue returns the index value for use with IndexAPIBindingByClusterAndAcceptedClaimedGroupResources from clusterName and groupResource.
func ClusterScoped ¶
ClusterScoped returns cache.Indexers appropriate for cluster-scoped resources.
func IndexAPIBindingByBoundResources ¶ added in v0.9.0
func IndexAPIBindingByClusterAndAcceptedClaimedGroupResources ¶ added in v0.8.0
IndexAPIBindingByClusterAndAcceptedClaimedGroupResources is an index function that indexes an APIBinding by its accepted permission claims' group resources.
func IndexAPIExportByIdentity ¶
IndexAPIExportByIdentity is an index function that indexes an APIExport by its identity hash.
func IndexAPIExportBySecret ¶ added in v0.7.6
IndexAPIExportBySecret is an index function that indexes an APIExport by its identity secret references. Index values are of the form <cluster name>|<secret reference namespace>/<secret reference name> (cache keys).
func IndexByLogicalCluster ¶
IndexByLogicalCluster is an index function that indexes by an object's logical cluster.
func IndexByLogicalClusterAndNamespace ¶
IndexByLogicalClusterAndNamespace is an index function that indexes by an object's logical cluster and namespace.
func IndexBySyncerFinalizerKey ¶ added in v0.7.0
IndexBySyncerFinalizerKey indexes by syncer finalizer label keys.
func IndexSyncTargetsBySyncTargetKey ¶ added in v0.7.0
func NamespaceScoped ¶
NamespaceScoped returns cache.Indexers appropriate for namespace-scoped resources.
Types ¶
This section is empty.