- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 108 for perfunc (5.6 sec)
-
pkg/registry/resource/resourceslice/storage/storage.go
*genericregistry.Store } // NewREST returns a RESTStorage object that will work against ResourceSlice. func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) { store := &genericregistry.Store{ NewFunc: func() runtime.Object { return &resource.ResourceSlice{} }, NewListFunc: func() runtime.Object { return &resource.ResourceSliceList{} }, PredicateFunc: resourceslice.Match,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/coverage/cfile/testsupport.go
newgran := mfr.CounterGranularity() if err := ts.cm.SetModeAndGranularity(p.MetaFile, cmode, newgran); err != nil { return err } // A map to store counter data, indexed by pkgid/fnid tuple. pmm := make(map[pkfunc][]uint32) // Helper to read a single counter data file. readcdf := func(cdf string) error { cf, err := os.Open(cdf) if err != nil { return fmt.Errorf("opening counter data file %s: %s", cdf, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 8.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_test.go
} else if expectedKey, _ := controller.KeyFunc(set1); expectedKey != key { t.Errorf("expected StatefulSet key %s found %s", expectedKey, key) } ssc.queue.Done(key) ssc.addPod(logger, pod2) key, done = ssc.queue.Get() if key == "" || done { t.Error("failed to enqueue StatefulSet") } else if expectedKey, _ := controller.KeyFunc(set2); expectedKey != key {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.1K bytes - Viewed (0) -
pkg/registry/resource/resourceclassparameters/storage/storage.go
*genericregistry.Store } // NewREST returns a RESTStorage object that will work against ResourceClassParameters. func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) { store := &genericregistry.Store{ NewFunc: func() runtime.Object { return &resource.ResourceClassParameters{} }, NewListFunc: func() runtime.Object { return &resource.ResourceClassParametersList{} },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 15:15:31 UTC 2024 - 2.2K bytes - Viewed (0) -
src/go/types/instantiate_test.go
"package equivalentinterfaces; type T[P any] int", "T", []Type{ NewInterfaceType([]*Func{NewFunc(nopos, nil, "M", emptySignature)}, nil), }, "T", []Type{ NewInterfaceType( nil, []Type{ NewInterfaceType([]*Func{NewFunc(nopos, nil, "M", emptySignature)}, nil), }, ), }, true, }, { // int|string is equivalent to string|int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set.go
key, err := controller.KeyFunc(rs) if err != nil { utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", rs, err)) return } rsc.queue.Add(key) } func (rsc *ReplicaSetController) enqueueRSAfter(rs *apps.ReplicaSet, duration time.Duration) { key, err := controller.KeyFunc(rs) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 33.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go
pathPrefix += "/" } w := &watcher{ client: c, codec: codec, newFunc: newFunc, groupResource: groupResource, versioner: versioner, transformer: transformer, } if newFunc == nil { w.objectType = "<unknown>" } else { w.objectType = reflect.TypeOf(newFunc()).String() } s := &store{ client: c, codec: codec,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 11:56:42 UTC 2024 - 35.2K bytes - Viewed (0) -
pkg/controller/bootstrap/tokencleaner.go
return } go wait.UntilWithContext(ctx, tc.worker, 10*time.Second) <-ctx.Done() } func (tc *TokenCleaner) enqueueSecrets(obj interface{}) { key, err := controller.KeyFunc(obj) if err != nil { utilruntime.HandleError(err) return } tc.queue.Add(key) } // worker runs a thread that dequeues secrets, handles them, and marks them done.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/kube/kclient/client.go
for _, c := range ic.registeredHandlers { c.handler.OnDelete(item) } } } } }) } } // keyFunc is the internal API key function that returns "namespace"/"name" or // "name" if "namespace" is empty func keyFunc(name, namespace string) string { if len(namespace) == 0 { return name } return namespace + "/" + name }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 07:14:28 UTC 2024 - 13K bytes - Viewed (0) -
src/go/types/object.go
origin *Func // if non-nil, the Func from which this one was instantiated } // NewFunc returns a new function with the given signature, representing // the function's type. func NewFunc(pos token.Pos, pkg *Package, name string, sig *Signature) *Func { var typ Type if sig != nil { typ = sig } else { // Don't store a (typed) nil *Signature.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 20.1K bytes - Viewed (0)