Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for getCallee (0.39 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go

    	// A negative or zero duration causes time.Sleep to return immediately.
    	// If the time moves backwards for any reason, do nothing.
    	time.Sleep(r.minPeriod - d)
    }
    
    // GetCaller returns the caller of the function that calls it.
    func GetCaller() string {
    	var pc [1]uintptr
    	runtime.Callers(3, pc[:])
    	f := runtime.FuncForPC(pc[0])
    	if f == nil {
    		return "Unable to find caller"
    	}
    	return f.Name()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. pkg/registry/core/service/ipallocator/controller/repair_test.go

    	netutils "k8s.io/utils/net"
    )
    
    type mockRangeRegistry struct {
    	getCalled bool
    	item      *api.RangeAllocation
    	err       error
    
    	updateCalled bool
    	updated      *api.RangeAllocation
    	updateErr    error
    }
    
    func (r *mockRangeRegistry) Get() (*api.RangeAllocation, error) {
    	r.getCalled = true
    	return r.item, r.err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 21.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

                                               device.getValue().str(), "_",
                                               inference_type.getValue().str());
      added_func_op.setName(builder.getStringAttr(function_name));
      added_call_op.setCallee(builder.getStringAttr(function_name));
    }
    
    // Raises partitioned sequential `Operations` from a block to a new function
    // definition. `Operations` are partitioned into classes from the cartesian
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  4. internal/grid/handlers.go

    type RemoteClient struct {
    	Name string
    }
    
    type (
    	ctxCallerKey   = struct{}
    	ctxSubrouteKey = struct{}
    )
    
    // GetCaller returns caller information from contexts provided to handlers.
    func GetCaller(ctx context.Context) *RemoteClient {
    	val, _ := ctx.Value(ctxCallerKey{}).(*RemoteClient)
    	return val
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set.go

    		return
    	}
    	set := ssc.resolveControllerRef(pod.Namespace, controllerRef)
    	if set == nil {
    		return
    	}
    	logger.V(4).Info("Pod deleted.", "pod", klog.KObj(pod), "caller", utilruntime.GetCaller())
    	ssc.enqueueStatefulSet(set)
    }
    
    // getPodsForStatefulSet returns the Pods that a given StatefulSet should manage.
    // It also reconciles ControllerRef by adopting/orphaning.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. pkg/controller/replicaset/replica_set.go

    	}
    	rsKey, err := controller.KeyFunc(rs)
    	if err != nil {
    		utilruntime.HandleError(fmt.Errorf("couldn't get key for object %#v: %v", rs, err))
    		return
    	}
    	logger.V(4).Info("Pod deleted", "delete_by", utilruntime.GetCaller(), "deletion_timestamp", pod.DeletionTimestamp, "pod", klog.KObj(pod))
    	rsc.expectations.DeletionObserved(logger, rsKey, controller.PodKey(pod))
    	rsc.queue.Add(rsKey)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top