- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NamespaceKeyFunc (0.14 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go
type setupOption func(*setupOptions) func withDefaults(options *setupOptions) { prefix := "/pods" options.resourcePrefix = prefix options.keyFunc = func(obj runtime.Object) (string, error) { return storage.NamespaceKeyFunc(prefix, obj) } options.clock = clock.RealClock{} } func withClusterScopedKeyFunc(options *setupOptions) { options.keyFunc = func(obj runtime.Object) (string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 17K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go
} // newTestWatchCache just adds a fake clock. func newTestWatchCache(capacity int, indexers *cache.Indexers) *testWatchCache { keyFunc := func(obj runtime.Object) (string, error) { return storage.NamespaceKeyFunc("prefix", obj) } getAttrsFunc := func(obj runtime.Object) (labels.Set, fields.Set, error) { pod, ok := obj.(*v1.Pod) if !ok { return nil, nil, fmt.Errorf("not a pod") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 35.4K bytes - Viewed (0)