indexer

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// MetaLabelIndexFuncKey is the recommended key to use for registering the index func with an indexer.
	MetaLabelIndexFuncKey string = "metalabelindexfunc"
)
View Source
const (
	// PresentCatalogIndexFuncKey is the recommended key to use for registering
	// the index func with an indexer.
	PresentCatalogIndexFuncKey string = "presentcatalogindexfunc"
)

Variables

This section is empty.

Functions

func CatalogSubscriberNamespaces

func CatalogSubscriberNamespaces(indexers map[string]cache.Indexer, name, namespace string) (map[string]struct{}, error)

CatalogSubscriberNamespaces returns the list of namespace (as a map with namespace as key) which has Suscriptions(s) that subscribe(s) to a given CatalogSource (name/namespace)

func LabelIndexKeys

func LabelIndexKeys(indexers map[string]cache.Indexer, labelSets ...labels.Set) ([]string, error)

LabelIndexKeys returns the union of indexed cache keys in the given indexers matching the same labels as the given selector

func MetaLabelIndexFunc

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

MetaLabelIndexFunc returns indicies from the labels of the given object.

func PresentCatalogIndexFunc

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

PresentCatalogIndexFunc returns index from CatalogSource/CatalogSourceNamespace of the given object (Subscription)

Types

This section is empty.

Jump to

Keyboard shortcuts

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