Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 144 for newFunc (0.16 sec)

  1. src/cmd/compile/internal/types2/universe.go

    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/universe.go

    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    		ityp := &Interface{methods: []*Func{err}, complete: true}
    		computeInterfaceTypeSet(nil, nopos, ityp) // prevent races due to lazy computation of tset
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pkg/registry/core/replicationcontroller/storage/storage.go

    }
    
    // NewREST returns a RESTStorage object that will work against replication controllers.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.ReplicationController{} },
    		NewListFunc:               func() runtime.Object { return &api.ReplicationControllerList{} },
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12K bytes
    - Viewed (0)
  4. pkg/registry/apps/replicaset/storage/storage.go

    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against ReplicaSet.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &apps.ReplicaSet{} },
    		NewListFunc:               func() runtime.Object { return &apps.ReplicaSetList{} },
    		PredicateFunc:             replicaset.MatchReplicaSet,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/etcd.go

    	var storage CustomResourceStorage
    	store := &genericregistry.Store{
    		NewFunc: func() runtime.Object {
    			// set the expected group/version/kind in the new object as a signal to the versioning decoder
    			ret := &unstructured.Unstructured{}
    			ret.SetGroupVersionKind(kind)
    			return ret
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/storage/storage.go

    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &api.Pod{} },
    		NewListFunc:               func() runtime.Object { return &api.PodList{} },
    		PredicateFunc:             registrypod.MatchPod,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 20 14:29:25 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  7. pkg/controlplane/reconcilers/lease.go

    	s.destroyFn()
    }
    
    // NewLeases creates a new etcd-based Leases implementation.
    func NewLeases(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (Leases, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  8. pkg/registry/apps/statefulset/storage/storage.go

    	*genericregistry.Store
    }
    
    // NewREST returns a RESTStorage object that will work against statefulsets.
    func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, *StatusREST, error) {
    	store := &genericregistry.Store{
    		NewFunc:                   func() runtime.Object { return &apps.StatefulSet{} },
    		NewListFunc:               func() runtime.Object { return &apps.StatefulSetList{} },
    		DefaultQualifiedResource:  apps.Resource("statefulsets"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    func NewPeerEndpointLeaseReconciler(config *storagebackend.ConfigForResource, baseKey string, leaseTime time.Duration) (PeerEndpointLeaseReconciler, error) {
    	// note that newFunc, newListFunc and resourcePrefix
    	// can be left blank unless the storage.Watch method is used
    	leaseStorage, destroyFn, err := storagefactory.Create(*config, nil, nil, "")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/parser.go

    			results := p.parseResultList(pkg)
    			p.skipInlineBody()
    			p.expectEOL()
    
    			sig := types.NewSignatureType(receiver, nil, nil, params, results, isVariadic)
    			nt.AddMethod(types.NewFunc(token.NoPos, pkg, name, sig))
    		}
    	}
    
    	return nt
    }
    
    func (p *parser) parseInt64() int64 {
    	lit := p.expect(scanner.Int)
    	n, err := strconv.ParseInt(lit, 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top