Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for nowFunc (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/ir/func.go

    type WasmImport struct {
    	Module string
    	Name   string
    }
    
    // NewFunc returns a new Func with the given name and type.
    //
    // fpos is the position of the "func" token, and npos is the position
    // of the name identifier.
    //
    // TODO(mdempsky): I suspect there's no need for separate fpos and
    // npos.
    func NewFunc(fpos, npos src.XPos, sym *types.Sym, typ *types.Type) *Func {
    	name := NewNameAt(npos, sym, typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    func (r *clientRecorder) GetReadsAndReset() uint64 {
    	return atomic.SwapUint64(&r.reads, 0)
    }
    
    type setupOptions struct {
    	client         func(testing.TB) *clientv3.Client
    	codec          runtime.Codec
    	newFunc        func() runtime.Object
    	newListFunc    func() runtime.Object
    	prefix         string
    	resourcePrefix string
    	groupResource  schema.GroupResource
    	transformer    value.Transformer
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    		compactor.refs--
    		if compactor.refs == 0 {
    			compactor.cancel()
    			compactor.client.Close()
    			delete(compactors, key)
    		}
    	}, nil
    }
    
    func newETCD3Storage(c storagebackend.ConfigForResource, newFunc, newListFunc func() runtime.Object, resourcePrefix string) (storage.Interface, DestroyFunc, error) {
    	stopCompactor, err := startCompactorOnce(c.Transport, c.CompactionInterval)
    	if err != nil {
    		return nil, nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/func.go

    }
    
    type LocalSlotSplitKey struct {
    	parent *LocalSlot
    	Off    int64       // offset of slot in N
    	Type   *types.Type // type of slot
    }
    
    // NewFunc returns a new, empty function object.
    // Caller must reset cache before calling NewFunc.
    func (c *Config) NewFunc(fe Frontend, cache *Cache) *Func {
    	return &Func{
    		fe:     fe,
    		Config: c,
    		Cache:  cache,
    
    		NamedValues:          make(map[LocalSlot][]*Value),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  8. pkg/config/schema/kubeclient/common.go

    			},
    		)
    		setupInformer(opts, inf)
    		return inf
    	})
    }
    
    func setupInformer(opts ktypes.InformerOptions, inf cache.SharedIndexInformer) {
    	// It is important to set this in the newFunc rather than after InformerFor to avoid
    	// https://github.com/kubernetes/kubernetes/issues/117869
    	if opts.ObjectTransform != nil {
    		_ = inf.SetTransform(opts.ObjectTransform)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top