Documentation ¶
Index ¶
- Constants
- func AddIfNotPresentOrDie(indexer cache.Indexer, toAdd cache.Indexers)
- func Append(indexers ...cache.Indexers) (cache.Indexers, error)
- func AppendOrDie(indexers ...cache.Indexers) cache.Indexers
- func ClusterScoped() cache.Indexers
- 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" )
const (
SyncTargetsBySyncTargetKey = "SyncTargetsBySyncTargetKey"
)
Variables ¶
This section is empty.
Functions ¶
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 ClusterScoped ¶
ClusterScoped returns cache.Indexers appropriate for cluster-scoped 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 <secret reference namespace>/<cluster name><separator><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.