Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 153 for FUNC (0.06 sec)

  1. src/cmd/go/internal/load/pkg.go

    func (s *ImportStack) Pop() {
    	*s = (*s)[0 : len(*s)-1]
    }
    
    func (s *ImportStack) Copy() []string {
    	return append([]string{}, *s...)
    }
    
    func (s *ImportStack) Top() string {
    	if len(*s) == 0 {
    		return ""
    	}
    	return (*s)[len(*s)-1]
    }
    
    // shorterThan reports whether sp is shorter than t.
    // We use this to record the shortest import sequence
    // that leads to a particular package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers_test.go

    	"k8s.io/kubernetes/pkg/features"
    	evictionapi "k8s.io/kubernetes/pkg/kubelet/eviction/api"
    	kubetypes "k8s.io/kubernetes/pkg/kubelet/types"
    )
    
    func quantityMustParse(value string) *resource.Quantity {
    	q := resource.MustParse(value)
    	return &q
    }
    
    func TestGetReclaimableThreshold(t *testing.T) {
    	testCases := map[string]struct {
    		thresholds []evictionapi.Threshold
    	}{
    		"": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    		Code:  ErrSiteReplicationInvalidRequest,
    	}
    )
    
    func errSRInvalidRequest(err error) SRError {
    	return SRError{
    		Cause: err,
    		Code:  ErrSiteReplicationInvalidRequest,
    	}
    }
    
    func errSRPeerResp(err error) SRError {
    	return SRError{
    		Cause: err,
    		Code:  ErrSiteReplicationPeerResp,
    	}
    }
    
    func errSRBackendIssue(err error) SRError {
    	return SRError{
    		Cause: err,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/exec.go

    	linker() string
    }
    
    type noToolchain struct{}
    
    func noCompiler() error {
    	log.Fatalf("unknown compiler %q", cfg.BuildContext.Compiler)
    	return nil
    }
    
    func (noToolchain) compiler() string {
    	noCompiler()
    	return ""
    }
    
    func (noToolchain) linker() string {
    	noCompiler()
    	return ""
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
  5. pkg/controller/garbagecollector/garbagecollector_test.go

    }
    func (t *trackingWorkqueue[T]) AddAfter(item T, duration time.Duration) {
    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) AddRateLimited(item T) {
    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) Get() (T, bool) {
    	item, shutdown := t.limiter.Get()
    	t.dequeue(item)
    	return item, shutdown
    }
    func (t *trackingWorkqueue[T]) Done(item T) {
    	t.limiter.Done(item)
    }
    func (t *trackingWorkqueue[T]) Forget(item T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  6. pkg/controller/job/job_controller_test.go

    	requeues int
    	item     string
    	duration time.Duration
    }
    
    func (f *fakeRateLimitingQueue) AddRateLimited(item string) {}
    func (f *fakeRateLimitingQueue) Forget(item string) {
    	f.requeues = 0
    }
    func (f *fakeRateLimitingQueue) NumRequeues(item string) int {
    	return f.requeues
    }
    func (f *fakeRateLimitingQueue) AddAfter(item string, duration time.Duration) {
    	f.item = item
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  7. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    	testRateLimiterQPS         = float32(100000)
    	testLargeClusterThreshold  = 20
    	testUnhealthyThreshold     = float32(0.55)
    )
    
    func alwaysReady() bool { return true }
    
    func fakeGetPodsAssignedToNode(c *fake.Clientset) func(string) ([]*v1.Pod, error) {
    	return func(nodeName string) ([]*v1.Pod, error) {
    		selector := fields.SelectorFromSet(fields.Set{"spec.nodeName": nodeName})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  8. api/go1.3.txt

    pkg sync, type Pool struct
    pkg sync, type Pool struct, New func() interface{}
    pkg syscall (darwin-386), func FcntlFlock(uintptr, int, *Flock_t) error
    pkg syscall (darwin-386), func Mlock([]uint8) error
    pkg syscall (darwin-386), func Mlockall(int) error
    pkg syscall (darwin-386), func Mprotect([]uint8, int) error
    pkg syscall (darwin-386), func Munlock([]uint8) error
    pkg syscall (darwin-386), func Munlockall() error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  9. pkg/printers/internalversion/printers_test.go

    		}
    	}
    }
    
    type TestPrintHandler struct {
    	numCalls int
    }
    
    func (t *TestPrintHandler) TableHandler(columnDefinitions []metav1.TableColumnDefinition, printFunc interface{}) error {
    	t.numCalls++
    	return nil
    }
    
    func (t *TestPrintHandler) getNumCalls() int {
    	return t.numCalls
    }
    
    func TestAllHandlers(t *testing.T) {
    	h := &TestPrintHandler{numCalls: 0}
    	AddHandlers(h)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 218.6K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods_test.go

    	services []*v1.Service
    }
    
    func (ls testServiceLister) List(labels.Selector) ([]*v1.Service, error) {
    	return ls.services, nil
    }
    
    type envs []kubecontainer.EnvVar
    
    func (e envs) Len() int {
    	return len(e)
    }
    
    func (e envs) Swap(i, j int) { e[i], e[j] = e[j], e[i] }
    
    func (e envs) Less(i, j int) bool { return e[i].Name < e[j].Name }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
Back to top