common

package
v1.19.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

View Source
const (
	// PodPVCIndex is the lookup name for the index function, which is to index by pod pvcs.
	PodPVCIndex = "pod-pvc-index"
)

Variables

This section is empty.

Functions

func AddIndexerIfNotPresent

func AddIndexerIfNotPresent(indexer cache.Indexer, indexName string, indexFunc cache.IndexFunc) error

AddIndexerIfNotPresent adds the index function with the name into the cache indexer if not present

func PodPVCIndexFunc

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

PodPVCIndexFunc returns PVC keys for given pod

Types

This section is empty.

Jump to

Keyboard shortcuts

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