Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for newFunc (0.35 sec)

  1. 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)
  2. 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 (0)
  3. 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)
  4. 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)
  5. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	if opts.Recursive && !strings.HasSuffix(key, "/") {
    		key += "/"
    	}
    	if opts.ProgressNotify && w.newFunc == nil {
    		return nil, apierrors.NewInternalError(errors.New("progressNotify for watch is unsupported by the etcd storage because no newFunc was provided"))
    	}
    	startWatchRV, err := w.getStartWatchResourceVersion(ctx, rev, opts)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/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 syntax.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)
  7. src/go/internal/gcimporter/ureader.go

    	implicit := len(methods) == 0 && len(embeddeds) == 1 && r.Bool()
    
    	for i := range methods {
    		pos := r.pos()
    		pkg, name := r.selector()
    		mtyp := r.signature(nil, nil, nil)
    		methods[i] = types.NewFunc(pos, pkg, name, mtyp)
    	}
    
    	for i := range embeddeds {
    		embeddeds[i] = r.typ()
    	}
    
    	iface := types.NewInterfaceType(methods, embeddeds)
    	if implicit {
    		iface.MarkImplicit()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    var lockerType *types.Interface
    
    // Construct a sync.Locker interface type.
    func init() {
    	nullary := types.NewSignature(nil, nil, nil, false) // func()
    	methods := []*types.Func{
    		types.NewFunc(token.NoPos, nil, "Lock", nullary),
    		types.NewFunc(token.NoPos, nil, "Unlock", nullary),
    	}
    	lockerType = types.NewInterface(methods, nil).Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. pkg/registry/core/namespace/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against namespaces.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, *FinalizeREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.Namespace{} },
    		NewListFunc:               func() runtime.Object { return &api.NamespaceList{} },
    		PredicateFunc:             namespace.MatchNamespace,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/iimport.go

    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    			tparams = r.tparamList()
    		}
    		sig := r.signature(nil, nil, tparams)
    		r.declare(types.NewFunc(pos, r.currPkg, name, sig))
    
    	case 'T', 'U':
    		// Types can be recursive. We need to setup a stub
    		// declaration before recurring.
    		obj := types.NewTypeName(pos, r.currPkg, name, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top