mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
implement AddIndexers for SharedIndexInformer
This commit is contained in:
2
pkg/client/cache/index.go
vendored
2
pkg/client/cache/index.go
vendored
@@ -32,6 +32,8 @@ type Indexer interface {
|
||||
ListIndexFuncValues(indexName string) []string
|
||||
// ByIndex lists object that match on the named indexing function with the exact key
|
||||
ByIndex(indexName, indexKey string) ([]interface{}, error)
|
||||
// GetIndexer return the indexers
|
||||
GetIndexers() Indexers
|
||||
}
|
||||
|
||||
// IndexFunc knows how to provide an indexed value for an object.
|
||||
|
||||
Reference in New Issue
Block a user