Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 154 for perfunc (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/factory.go

    func Create(c storagebackend.ConfigForResource, newFunc, newListFunc func() runtime.Object, resourcePrefix string) (storage.Interface, DestroyFunc, error) {
    	switch c.Type {
    	case storagebackend.StorageTypeETCD2:
    		return nil, nil, fmt.Errorf("%s is no longer a supported storage backend", c.Type)
    	case storagebackend.StorageTypeUnset, storagebackend.StorageTypeETCD3:
    		return newETCD3Storage(c, newFunc, newListFunc, resourcePrefix)
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/expr.go

    	}
    	if outer.Sym() == nil {
    		base.Errorf("tracked field must be in named struct type")
    	}
    
    	sym := reflectdata.TrackSym(outer, field)
    	if ir.CurFunc.FieldTrack == nil {
    		ir.CurFunc.FieldTrack = make(map[*obj.LSym]struct{})
    	}
    	ir.CurFunc.FieldTrack[sym] = struct{}{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	upperBoundCapacity int
    
    	// lower bound of capacity since event cache has a dynamic size.
    	lowerBoundCapacity int
    
    	// keyFunc is used to get a key in the underlying storage for a given object.
    	keyFunc func(runtime.Object) (string, error)
    
    	// getAttrsFunc is used to get labels and fields of an object.
    	getAttrsFunc func(runtime.Object) (labels.Set, fields.Set, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/syms.go

    // user labels.
    func AutoLabel(prefix string) *types.Sym {
    	if prefix[0] != '.' {
    		base.Fatalf("autolabel prefix must start with '.', have %q", prefix)
    	}
    	fn := ir.CurFunc
    	if ir.CurFunc == nil {
    		base.Fatalf("autolabel outside function")
    	}
    	n := fn.Label
    	fn.Label++
    	return LookupNum(prefix, int(n))
    }
    
    func Lookup(name string) *types.Sym {
    	return types.LocalPkg.Lookup(name)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:13 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. pkg/registry/resource/resourceclaimparameters/storage/storage.go

    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against ResourceClaimParameters.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &resource.ResourceClaimParameters{} },
    		NewListFunc:               func() runtime.Object { return &resource.ResourceClaimParametersList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. pkg/registry/storage/volumeattributesclass/storage/storage.go

    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against storage classes.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &storageapi.VolumeAttributesClass{} },
    		NewListFunc:               func() runtime.Object { return &storageapi.VolumeAttributesClassList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 03:18:56 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/mock_threshold_notifier_test.go

    func (m *MockManager) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	m.ctrl.T.Helper()
    	m.ctrl.Call(m, "Start", diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval)
    }
    
    // Start indicates an expected call of Start.
    func (mr *MockManagerMockRecorder) Start(diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval any) *gomock.Call {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. pkg/controlplane/reconcilers/lease_test.go

    	t.Cleanup(func() { server.Terminate(t) })
    
    	newFunc := func() runtime.Object { return &corev1.Endpoints{} }
    	newListFunc := func() runtime.Object { return &corev1.EndpointsList{} }
    	sc.Codec = apitesting.TestStorageCodec(codecs, corev1.SchemeGroupVersion)
    
    	s, dFunc, err := factory.Create(*sc.ForResource(schema.GroupResource{Resource: "endpoints"}), newFunc, newListFunc, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 28.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    		enableWatchList bool
    		expectedErr     error
    	}{
    		{
    			name:        "no newFunc provided",
    			setupFn:     func(opts *setupOptions) { opts.newFunc = nil },
    			requestOpts: storage.ListOptions{ProgressNotify: true},
    			expectedErr: apierrors.NewInternalError(errors.New("progressNotify for watch is unsupported by the etcd storage because no newFunc was provided")),
    		},
    	}
    	for _, scenario := range scenarios {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (1)
  10. 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)
Back to top