Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for errList (0.26 sec)

  1. pkg/kubelet/container/sync_result.go

    // Error returns an error summarizing all the errors in PodSyncResult
    func (p *PodSyncResult) Error() error {
    	errlist := []error{}
    	if p.SyncError != nil {
    		errlist = append(errlist, fmt.Errorf("failed to SyncPod: %v", p.SyncError))
    	}
    	for _, result := range p.SyncResults {
    		if result.Error != nil {
    			errlist = append(errlist, fmt.Errorf("failed to %q for %q with %v: %q", result.Action, result.Target,
    				result.Error, result.Message))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 19 15:48:08 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors_test.go

    		},
    		[]int{
    			0,
    			0,
    			1,
    			1,
    			2,
    		},
    	}
    
    	if len(testCases.ErrList) != len(testCases.NumExpectedErrs) {
    		t.Errorf("Mismatch: length of NumExpectedErrs does not match length of ErrList")
    	}
    	for i, tc := range testCases.ErrList {
    		agg := tc.ToAggregate()
    		numErrs := 0
    
    		if agg != nil {
    			numErrs = len(agg.Errors())
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. pkg/registry/networking/ipaddress/strategy.go

    	newIPAddress := new.(*networking.IPAddress)
    	oldIPAddress := old.(*networking.IPAddress)
    	errList := validation.ValidateIPAddress(newIPAddress)
    	errList = append(errList, validation.ValidateIPAddressUpdate(newIPAddress, oldIPAddress)...)
    	return errList
    }
    
    // AllowUnconditionalUpdate is the default update policy for IPAddress objects.
    func (ipAddressStrategy) AllowUnconditionalUpdate() bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 22:58:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. pkg/util/procfs/procfs_linux.go

    	}
    	pids := getPids(re)
    	if len(pids) == 0 {
    		return fmt.Errorf("unable to fetch pids for process name : %q", name)
    	}
    	errList := []error{}
    	for _, pid := range pids {
    		if err = syscall.Kill(pid, sig); err != nil {
    			errList = append(errList, err)
    		}
    	}
    	return utilerrors.NewAggregate(errList)
    }
    
    // PidOf finds process(es) with a specified name (regexp match)
    // and return their pid(s).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. pkg/registry/networking/servicecidr/strategy.go

    	newServiceCIDR := new.(*networking.ServiceCIDR)
    	oldServiceCIDR := old.(*networking.ServiceCIDR)
    	errList := validation.ValidateServiceCIDR(newServiceCIDR)
    	errList = append(errList, validation.ValidateServiceCIDRUpdate(newServiceCIDR, oldServiceCIDR)...)
    	return errList
    }
    
    // AllowUnconditionalUpdate is the default update policy for ServiceCIDR objects.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. pkg/controller/controller_ref_manager.go

    	}
    
    	for _, pod := range pods {
    		ok, err := m.ClaimObject(ctx, pod, match, adopt, release)
    		if err != nil {
    			errlist = append(errlist, err)
    			continue
    		}
    		if ok {
    			claimed = append(claimed, pod)
    		}
    	}
    	return claimed, utilerrors.NewAggregate(errlist)
    }
    
    // AdoptPod sends a patch to take control of the pod. It returns the error if
    // the patching fails.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/testing_test.go

            import  /* ERROR "8:9" */  // indented with blanks
    `
    	m := CommentMap(strings.NewReader(src), regexp.MustCompile("^ ERROR "))
    	found := 0 // number of errors found
    	for line, errlist := range m {
    		for _, err := range errlist {
    			if err.Pos.Line() != line {
    				t.Errorf("%v: got map line %d; want %d", err, err.Pos.Line(), line)
    				continue
    			}
    			// err.Pos.Line() == line
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:53:18 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/stacks.go

    	"github.com/google/pprof/internal/report"
    )
    
    // stackView generates the flamegraph view.
    func (ui *webInterface) stackView(w http.ResponseWriter, req *http.Request) {
    	// Get all data in a report.
    	rpt, errList := ui.makeReport(w, req, []string{"svg"}, func(cfg *config) {
    		cfg.CallTree = true
    		cfg.Trim = false
    		cfg.Granularity = "filefunctions"
    	})
    	if rpt == nil {
    		return // error already reported
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. pkg/registry/core/event/strategy_test.go

    			Source: api.EventSource{Component: "test"},
    			Type:   api.EventTypeNormal,
    		}
    	}
    	eventA := makeEvent("eventA")
    	eventB := makeEvent("eventB")
    	errList := Strategy.ValidateUpdate(context.Background(), eventA, eventB)
    	if len(errList) == 0 {
    		t.Errorf("ValidateUpdate should fail on name change")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  10. src/go/types/commentMap_test.go

            import  /* ERROR "8:9" */  // indented with blanks
    `
    	m := commentMap([]byte(src), regexp.MustCompile("^ ERROR "))
    	found := 0 // number of errors found
    	for line, errlist := range m {
    		for _, err := range errlist {
    			if err.line != line {
    				t.Errorf("%v: got map line %d; want %d", err, err.line, line)
    				continue
    			}
    			// err.line == line
    
    			got := strings.TrimSpace(err.text[len(" ERROR "):])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top