Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newFunc (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    //
    // TODO: make the default exposed methods exactly match a generic RESTStorage
    type Store struct {
    	// NewFunc returns a new instance of the type this registry returns for a
    	// GET of a single object, e.g.:
    	//
    	// curl GET /apis/group/version/namespaces/my-ns/myresource/name-of-object
    	NewFunc func() runtime.Object
    
    	// NewListFunc returns a new list of the type this registry; it is the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    			labelsSet, fieldsSet, err := storage.DefaultNamespaceScopedAttr(obj)
    			if err != nil {
    				return nil, nil, err
    			}
    			fieldsSet["spec.nodeName"] = pod.Spec.NodeName
    			return labelsSet, fieldsSet, nil
    		},
    		NewFunc:     func() runtime.Object { return &example.Pod{} },
    		NewListFunc: func() runtime.Object { return &example.PodList{} },
    		Codec:       codecs.LegacyCodec(examplev1.SchemeGroupVersion),
    		Clock:       clock.RealClock{},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_test.go

    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    	embeddedMethods := []*Func{
    		NewFunc(nopos, nil, "M", sig2),
    	}
    	embedded := NewInterfaceType(embeddedMethods, nil)
    	iface := NewInterfaceType(methods, []Type{embedded})
    	iface.Complete()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(expectNode, node))
    		})
    	}
    
    }
    
    func TestReadyCondition(t *testing.T) {
    	now := time.Now()
    	before := now.Add(-time.Second)
    	nowFunc := func() time.Time { return now }
    
    	withCapacity := &v1.Node{
    		Status: v1.NodeStatus{
    			Capacity: v1.ResourceList{
    				v1.ResourceCPU:              *resource.NewMilliQuantity(2000, resource.DecimalSI),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      auto caller = MakeFuncCaller(builder, module.getLoc(), new_func,
                                   inputs.getArrayRef(), flag_for_inlining);
    
      Block* block = new_func.addEntryBlock();
      for (Operation* op : topological_order) op->moveBefore(block, block->end());
    
      // Replace the 'inputs' values with the new function's arguments.
      for (auto p : llvm::zip(inputs, new_func.getArguments()))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	}
    }
    
    func Test_kmsv2PluginProbe_rotateDEKOnKeyIDChange(t *testing.T) {
    	defaultUseSeed := GetKDF()
    
    	origNowFunc := envelopekmsv2.NowFunc
    	now := origNowFunc() // freeze time
    	t.Cleanup(func() { envelopekmsv2.NowFunc = origNowFunc })
    	envelopekmsv2.NowFunc = func() time.Time { return now }
    
    	klog.LogToStderr(false)
    	var level klog.Level
    	if err := level.Set("6"); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
Back to top