Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for perfunc (0.14 sec)

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

    	//
    	// KeyRootFunc and KeyFunc must be supplied together or not at all.
    	KeyRootFunc func(ctx context.Context) string
    
    	// KeyFunc returns the key for a specific object in the collection.
    	// KeyFunc is called for Create/Update/Get/Delete. Note that 'namespace'
    	// can be gotten from ctx.
    	//
    	// KeyFunc and KeyRootFunc must be supplied together or not at all.
    	KeyFunc func(ctx context.Context, name string) (string, error)
    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

    	// The Cache will be caching objects of a given Type and assumes that they
    	// are all stored under ResourcePrefix directory in the underlying database.
    	ResourcePrefix string
    
    	// KeyFunc is used to get a key in the underlying storage for a given object.
    	KeyFunc func(runtime.Object) (string, error)
    
    	// GetAttrsFunc is used to get object labels, fields
    	GetAttrsFunc func(runtime.Object) (label labels.Set, field fields.Set, err error)
    
    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/registry/rest/resttest/resttest.go

    	}
    	meta.SetGenerateName("")
    	meta.SetGeneration(1)
    }
    
    type AssignFunc func([]runtime.Object) []runtime.Object
    type EmitFunc func(runtime.Object, string) error
    type GetFunc func(context.Context, runtime.Object) (runtime.Object, error)
    type InitWatchFunc func()
    type InjectErrFunc func(err error)
    type IsErrorFunc func(err error) bool
    type CreateFunc func(context.Context, runtime.Object) error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  4. pkg/controller/disruption/disruption_test.go

    )
    
    type pdbStates map[string]policy.PodDisruptionBudget
    
    var alwaysReady = func() bool { return true }
    
    func (ps *pdbStates) Set(ctx context.Context, pdb *policy.PodDisruptionBudget) error {
    	key, err := controller.KeyFunc(pdb)
    	if err != nil {
    		return err
    	}
    	(*ps)[key] = *pdb.DeepCopy()
    	return nil
    }
    
    func (ps *pdbStates) Get(key string) policy.PodDisruptionBudget {
    	return (*ps)[key]
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 50K bytes
    - Viewed (0)
  5. pkg/controller/daemon/daemon_controller.go

    	oldDS := old.(*apps.DaemonSet)
    	curDS := cur.(*apps.DaemonSet)
    
    	// TODO: make a KEP and fix informers to always call the delete event handler on re-create
    	if curDS.UID != oldDS.UID {
    		key, err := controller.KeyFunc(oldDS)
    		if err != nil {
    			utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", oldDS, err))
    			return
    		}
    		dsc.deleteDaemonset(logger, cache.DeletedFinalStateUnknown{
    			Key: key,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller.go

    	if controllerRef := metav1.GetControllerOf(pod); controllerRef != nil {
    		job := jm.resolveControllerRef(pod.Namespace, controllerRef)
    		if job == nil {
    			return
    		}
    		jobKey, err := controller.KeyFunc(job)
    		if err != nil {
    			return
    		}
    		jm.expectations.CreationObserved(logger, jobKey)
    		jm.enqueueSyncJobBatched(logger, job)
    		return
    	}
    
    	// Otherwise, it's an orphan.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  7. pkg/controller/replicaset/replica_set_test.go

    	manager.syncReplicaSet(ctx, GetKey(rsSpec, t))
    	err = validateSyncReplicaSet(&fakePodControl, 0, 0, 0)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Get the key for the controller
    	rsKey, err := controller.KeyFunc(rsSpec)
    	if err != nil {
    		t.Errorf("Couldn't get key for object %#v: %v", rsSpec, err)
    	}
    
    	// Lowering expectations should lead to a sync that creates a replica, however the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/queue/scheduling_queue.go

    // is used to implement unschedulablePods.
    type UnschedulablePods struct {
    	// podInfoMap is a map key by a pod's full-name and the value is a pointer to the QueuedPodInfo.
    	podInfoMap map[string]*framework.QueuedPodInfo
    	keyFunc    func(*v1.Pod) string
    	// unschedulableRecorder/gatedRecorder updates the counter when elements of an unschedulablePodsMap
    	// get added or removed, and it does nothing if it's nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  9. src/html/template/exec_test.go

    	{"Interface Call", `{{stringer .S}}`, "foozle", map[string]any{"S": bytes.NewBufferString("foozle")}, true},
    	{".ErrFunc", "{{call .ErrFunc}}", "bla", tVal, true},
    	{"call nil", "{{call nil}}", "", tVal, false},
    
    	// Erroneous function calls (check args).
    	{".BinaryFuncTooFew", "{{call .BinaryFunc `1`}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. src/text/template/exec_test.go

    	{"Interface Call", `{{stringer .S}}`, "foozle", map[string]any{"S": bytes.NewBufferString("foozle")}, true},
    	{".ErrFunc", "{{call .ErrFunc}}", "bla", tVal, true},
    	{"call nil", "{{call nil}}", "", tVal, false},
    
    	// Erroneous function calls (check args).
    	{".BinaryFuncTooFew", "{{call .BinaryFunc `1`}}", "", tVal, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top