- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 249 for perfunc (0.15 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/etcd.go
if crd.DeletionTimestamp.IsZero() { key, err := r.Store.KeyFunc(ctx, name) if err != nil { return nil, false, err } preconditions := storage.Preconditions{UID: options.Preconditions.UID, ResourceVersion: options.Preconditions.ResourceVersion} out := r.Store.NewFunc() err = r.Store.Storage.GuaranteedUpdate( ctx, key, out, false, &preconditions,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 8K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
} } return "", name } var CurFunc *Func // WithFunc invokes do with CurFunc and base.Pos set to curfn and // curfn.Pos(), respectively, and then restores their previous values // before returning. func WithFunc(curfn *Func, do func()) { oldfn, oldpos := CurFunc, base.Pos defer func() { CurFunc, base.Pos = oldfn, oldpos }() CurFunc, base.Pos = curfn, curfn.Pos() do() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0) -
pkg/scheduler/internal/heap/heap.go
// according to the heap invariant. The queue keeps the keys of objects stored // in "items". queue []string // keyFunc is used to make the key used for queued item insertion and retrieval, and // should be deterministic. keyFunc KeyFunc // lessFunc is used to compare two objects in the heap. lessFunc lessFunc } var ( _ = heap.Interface(&data{}) // heapData is a standard heap )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 29 18:37:35 UTC 2022 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go
codec := NewCodec(serializer, serializer, testCase.convertor, nil, testCase.typer, nil, testCase.targetVersion, nil, "noxu-scheme") err := codec.Encode(testCase.outObj, ioutil.Discard) if testCase.errFunc != nil { if !testCase.errFunc(err) { t.Errorf("%v: failed: %v", testCase.name, err) } return } assert.NoError(t, err) assert.Equal(t, testCase.expectedObj, serializer.obj) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 08 14:55:24 UTC 2018 - 10.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/mapper.go
// GroupResources with the same identity string are considered equivalent. func NewEquivalentResourceRegistryWithIdentity(keyFunc func(schema.GroupResource) string) EquivalentResourceRegistry { return &equivalentResourceRegistry{keyFunc: keyFunc} } func (r *equivalentResourceRegistry) EquivalentResourcesFor(resource schema.GroupVersionResource, subresource string) []schema.GroupVersionResource {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 18:26:06 UTC 2019 - 3.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/dcl.go
funcStack = append(funcStack, ir.CurFunc) ir.CurFunc = fn } // FinishFuncBody restores ir.CurFunc to its state before the last // call to DeclFunc. func FinishFuncBody() { funcStack, ir.CurFunc = funcStack[:len(funcStack)-1], funcStack[len(funcStack)-1] } func CheckFuncStack() { if len(funcStack) != 0 { base.Fatalf("funcStack is non-empty: %v", len(funcStack)) } } // make a new Node off the books.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:15:50 UTC 2023 - 3.1K bytes - Viewed (0) -
plugin/pkg/admission/eventratelimit/limitenforcer.go
keyFunc = getNamespaceKey case eventratelimitapi.UserLimitType: keyFunc = getUserKey case eventratelimitapi.SourceAndObjectLimitType: keyFunc = getSourceAndObjectKey default: return nil, fmt.Errorf("unknown event rate limit type: %v", t) } return &limitEnforcer{ limitType: config.Type, cache: cache, keyFunc: keyFunc, }, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 08 02:31:37 UTC 2021 - 3.8K bytes - Viewed (0) -
src/cmd/compile/internal/walk/complit.go
// TODO(khr): assign these temps in order phase so we can reuse them across multiple maplits? tmpkey := typecheck.TempAt(base.Pos, ir.CurFunc, m.Type().Key()) tmpelem := typecheck.TempAt(base.Pos, ir.CurFunc, m.Type().Elem()) for _, r := range entries { r := r.(*ir.KeyExpr) index, elem := r.Key, r.Value ir.SetPos(index)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:03:54 UTC 2023 - 19.5K bytes - Viewed (0) -
pkg/registry/core/namespace/storage/storage.go
if namespace.DeletionTimestamp.IsZero() { key, err := r.store.KeyFunc(ctx, name) if err != nil { return nil, false, err } preconditions := storage.Preconditions{UID: options.Preconditions.UID, ResourceVersion: options.Preconditions.ResourceVersion} out := r.store.NewFunc() err = r.store.Storage.GuaranteedUpdate( ctx, key, out, false, &preconditions,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 18 09:21:19 UTC 2022 - 13.4K bytes - Viewed (0) -
test/closure.go
memstats := new(runtime.MemStats) runtime.ReadMemStats(memstats) n0 := memstats.Mallocs x, y := newfunc(), newfunc() if x(1) != 1 || y(2) != 2 { println("newfunc returned broken funcs") fail = true } runtime.ReadMemStats(memstats) if n0 != memstats.Mallocs { println("newfunc allocated unexpectedly") fail = true } ff(1) if fail { panic("fail") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Jul 01 17:59:50 UTC 2012 - 1.7K bytes - Viewed (0)