Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 116 for makeID (0.11 sec)

  1. src/reflect/value.go

    	// and each iteration makes its own copy of the value c.
    	var runcases []runtimeSelect
    	if len(cases) > 4 {
    		// Slice is heap allocated due to runtime dependent capacity.
    		runcases = make([]runtimeSelect, len(cases))
    	} else {
    		// Slice can be stack allocated due to constant capacity.
    		runcases = make([]runtimeSelect, len(cases), 4)
    	}
    
    	haveDefault := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. pkg/scheduler/schedule_one_test.go

    	}
    	return pod
    }
    
    func makeNodeList(nodeNames []string) []*v1.Node {
    	result := make([]*v1.Node, 0, len(nodeNames))
    	for _, nodeName := range nodeNames {
    		result = append(result, &v1.Node{ObjectMeta: metav1.ObjectMeta{Name: nodeName}})
    	}
    	return result
    }
    
    // makeScheduler makes a simple Scheduler for testing.
    func makeScheduler(ctx context.Context, nodes []*v1.Node) *Scheduler {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    	}
    
    	// Avoid reusing tcp connection if read timeout is hit
    	// This is needed to make r.Context().Done() work as
    	// expected in case of read timeout
    	w.Header().Set("Connection", "close")
    
    	setEventStreamHeaders(w)
    
    	logCh := make(chan log.Info, 1000)
    	peers, _ := newPeerRestClients(globalEndpoints)
    	encodedCh := make(chan []byte, 1000+len(peers)*1000)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  4. fastapi/routing.py

                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
                    [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_exclude_none).
                    """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  5. cmd/metrics-v2.go

    		Description:          m.Description,
    		Value:                m.Value,
    		HistogramBucketLabel: m.HistogramBucketLabel,
    		StaticLabels:         make(map[string]string, len(m.StaticLabels)),
    		VariableLabels:       make(map[string]string, len(m.VariableLabels)),
    		Histogram:            make(map[string]uint64, len(m.Histogram)),
    	}
    	for k, v := range m.StaticLabels {
    		metric.StaticLabels[k] = v
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  6. src/runtime/proc.go

    		// has a main, but it is not executed.
    		return
    	}
    	fn := main_main // make an indirect call, as the linker doesn't know the address of the main package when laying down the runtime
    	fn()
    	if raceenabled {
    		runExitHooks(0) // run hooks now, since racefini does not return
    		racefini()
    	}
    
    	// Make racy client program work: if panicking on
    	// another goroutine at the same time as main returns,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  7. fastapi/applications.py

                    and `response_model_exclude_defaults`. You probably want to use one of
                    those two instead of this one, as those allow returning `None` values
                    when it makes sense.
    
                    Read more about it in the
                    [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_exclude_none).
                    """
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  8. pkg/printers/internalversion/printers_test.go

    		},
    		{
    			// Test pod has 1 init container restarting and 1 container not running
    			api.Pod{
    				ObjectMeta: metav1.ObjectMeta{Name: "test7"},
    				Spec:       api.PodSpec{InitContainers: make([]api.Container, 1), Containers: make([]api.Container, 1)},
    				Status: api.PodStatus{
    					Phase: "podPhase",
    					InitContainerStatuses: []api.ContainerStatus{
    						{
    							Ready:                false,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  9. pkg/apis/resource/v1alpha2/zz_generated.conversion.go

    	if in.ResourceHandles != nil {
    		in, out := &in.ResourceHandles, &out.ResourceHandles
    		*out = make([]resource.ResourceHandle, len(*in))
    		for i := range *in {
    			if err := Convert_v1alpha2_ResourceHandle_To_resource_ResourceHandle(&(*in)[i], &(*out)[i], s); err != nil {
    				return err
    			}
    		}
    	} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  10. cluster/gce/util.sh

    function print-windows-node-kubelet-config {
      # Notes:
      # - We don't run any static pods on Windows nodes yet.
    
      # TODO(mtaufen): Does it make any sense to set eviction thresholds for inodes
      # on Windows?
    
      # TODO(pjh, mtaufen): It may make sense to use a different hairpin mode on
      # Windows. We're currently using hairpin-veth, but
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 21:47:17 UTC 2024
    - 161.6K bytes
    - Viewed (0)
Back to top