Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 62 for newFunc (0.12 sec)

  1. pkg/registry/storagemigration/storagemigration/storage/storage.go

    // NewREST returns a RESTStorage object for ClusterTrustBundle objects.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:     func() runtime.Object { return &svmapi.StorageVersionMigration{} },
    		NewListFunc: func() runtime.Object { return &svmapi.StorageVersionMigrationList{} },
    		ObjectNameFunc: func(obj runtime.Object) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/net/http/httptrace/trace.go

    		tfCopy := reflect.ValueOf(tf.Interface())
    
    		// We need to call both tf and of in some order.
    		newFunc := reflect.MakeFunc(hookType, func(args []reflect.Value) []reflect.Value {
    			tfCopy.Call(args)
    			return of.Call(args)
    		})
    		tv.Field(i).Set(newFunc)
    	}
    }
    
    // DNSStartInfo contains information about a DNS request.
    type DNSStartInfo struct {
    	Host string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/named_test.go

    		pkg := mustTypecheck(src, nil, nil)
    		T := pkg.Scope().Lookup("T").Type().(*Named)
    
    		// add a few more methods manually
    		for _, name := range []string{"foo", "bar", "bal"} {
    			m := NewFunc(nopos, pkg, name, nil /* don't care about signature */)
    			T.AddMethod(m)
    		}
    
    		// check method order
    		if i == 0 {
    			// first round: collect methods in given order
    			methods = make([]string, T.NumMethods())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/go/types/named_test.go

    		pkg := mustTypecheck(src, nil, nil)
    		T := pkg.Scope().Lookup("T").Type().(*Named)
    
    		// add a few more methods manually
    		for _, name := range []string{"foo", "bar", "bal"} {
    			m := NewFunc(nopos, pkg, name, nil /* don't care about signature */)
    			T.AddMethod(m)
    		}
    
    		// check method order
    		if i == 0 {
    			// first round: collect methods in given order
    			methods = make([]string, T.NumMethods())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/export_test.go

    }
    
    type Conf struct {
    	config *Config
    	tb     testing.TB
    	fe     Frontend
    }
    
    func (c *Conf) Frontend() Frontend {
    	if c.fe == nil {
    		pkg := types.NewPkg("my/import/path", "path")
    		fn := ir.NewFunc(src.NoXPos, src.NoXPos, pkg.Lookup("function"), types.NewSignature(nil, nil, nil))
    		fn.DeclareParams(true)
    		fn.LSym = &obj.LSym{Name: "my/import/path.function"}
    
    		c.fe = TestFrontend{
    			t:    c.tb,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 21:19:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// Indexers is used to accelerate the list operation, falls back to regular list
    	// operation if no indexer found.
    	Indexers *cache.Indexers
    
    	// NewFunc is a function that creates new empty object storing a object of type Type.
    	NewFunc func() runtime.Object
    
    	// NewList is a function that creates new empty object storing a list of
    	// objects of type Type.
    	NewListFunc func() runtime.Object
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    		Versioner:      storage.APIObjectVersioner{},
    		GroupResource:  schema.GroupResource{Resource: "pods"},
    		ResourcePrefix: setupOpts.resourcePrefix,
    		KeyFunc:        setupOpts.keyFunc,
    		GetAttrsFunc:   GetPodAttrs,
    		NewFunc:        newPod,
    		NewListFunc:    newPodList,
    		IndexerFuncs:   setupOpts.indexerFuncs,
    		Codec:          codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    		Clock:          setupOpts.clock,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top