indexers

package
v0.20.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BySyncerFinalizerKey is the name for the index that indexes by syncer finalizer label keys.
	BySyncerFinalizerKey = "bySyncerFinalizerKey"
	// ByClusterResourceStateLabelKey indexes resources based on the cluster state label key.
	ByClusterResourceStateLabelKey = "ByClusterResourceStateLabelKey"
)
View Source
const (
	SyncTargetsBySyncTargetKey = "SyncTargetsBySyncTargetKey"
)

Variables

This section is empty.

Functions

func AddIfNotPresentOrDie

func AddIfNotPresentOrDie(indexer cache.Indexer, toAdd cache.Indexers)

AddIfNotPresentOrDie tries to add everything from toAdd to indexer's indexers that does not already exist. It panics if it encounters an error.

func Append

func Append(indexers ...cache.Indexers) (cache.Indexers, error)

Append is a helper function that merged a set of indexers.

func AppendOrDie

func AppendOrDie(indexers ...cache.Indexers) cache.Indexers

func IndexByClusterResourceStateLabelKey

func IndexByClusterResourceStateLabelKey(obj interface{}) ([]string, error)

IndexByClusterResourceStateLabelKey indexes resources based on the cluster state key label.

func IndexBySyncerFinalizerKey

func IndexBySyncerFinalizerKey(obj interface{}) ([]string, error)

IndexBySyncerFinalizerKey indexes by syncer finalizer label keys.

func IndexSyncTargetsBySyncTargetKey

func IndexSyncTargetsBySyncTargetKey(obj interface{}) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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