correct input params and add godoc

Kubernetes-commit: 9847b2eeb43e3fd13581dfdb4eeb288139ea7f3b
This commit is contained in:
weilaaa
2022-06-22 11:26:07 +08:00
committed by Kubernetes Publisher
parent acab036eff
commit 64585cf823
3 changed files with 12 additions and 7 deletions

View File

@@ -47,9 +47,9 @@ type ThreadSafeStore interface {
ListKeys() []string
Replace(map[string]interface{}, string)
Index(indexName string, obj interface{}) ([]interface{}, error)
IndexKeys(indexName, indexKey string) ([]string, error)
IndexKeys(indexName, indexedValue string) ([]string, error)
ListIndexFuncValues(name string) []string
ByIndex(indexName, indexKey string) ([]interface{}, error)
ByIndex(indexName, indexedValue string) ([]interface{}, error)
GetIndexers() Indexers
// AddIndexers adds more indexers to this store. If you call this after you already have data