- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for nodeNameIndexFunc (0.14 sec)
-
pkg/registry/resource/resourceslice/strategy.go
} // Indexers returns the indexers for ResourceSlice. func Indexers() *cache.Indexers { return &cache.Indexers{ storage.FieldIndex("nodeName"): nodeNameIndexFunc, } } func nodeNameIndexFunc(obj interface{}) ([]string, error) { slice, ok := obj.(*resource.ResourceSlice) if !ok { return nil, fmt.Errorf("not a ResourceSlice") } return []string{slice.NodeName}, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 4.4K bytes - Viewed (0)