filteredcache

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 30 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldIndexName added in v0.1.3

func FieldIndexName(field string) string

FieldIndexName constructs the name of the index over the given field, for use with an indexer.

func KeyToNamespacedKey added in v0.1.3

func KeyToNamespacedKey(ns string, baseKey string) string

KeyToNamespacedKey prefixes the given index key with a namespace for use in field selector indexes.

func MultiNamespacedFilteredCacheBuilder added in v0.1.3

func MultiNamespacedFilteredCacheBuilder(gvkLabelMap map[schema.GroupVersionKind]Selector, namespaces []string) cache.NewCacheFunc

MultiNamespacedFilteredCacheBuilder implements a customized cache with a filter for specified resources with multiple namespaces

func NewEnhancedFilteredCacheBuilder added in v0.3.1

func NewEnhancedFilteredCacheBuilder(gvkLabelsMap map[schema.GroupVersionKind][]Selector) cache.NewCacheFunc

NewEnhancedFilteredCacheBuilder implements a customized cache with a filter for specified resources

func NewFilteredCacheBuilder

func NewFilteredCacheBuilder(gvkLabelMap map[schema.GroupVersionKind]Selector) cache.NewCacheFunc

NewFilteredCacheBuilder implements a customized cache with a filter for specified resources

Types

type Selector added in v0.1.3

type Selector struct {
	LabelSelector string
	FieldSelector string
}

Selector contains LabelSelector FieldSelector

Jump to

Keyboard shortcuts

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