- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 285 for errf (0.04 sec)
-
pkg/test/framework/components/istio/kube.go
fetchFn := testKube.NewSinglePodFetch(c, i.cfg.SystemNamespace, "istio=pilot") pods, err := testKube.WaitUntilPodsAreReady(fetchFn) if err != nil { return "", err } pod := pods[0] fw, err := c.NewPortForwarder(pod.Name, pod.Namespace, "", 0, 15012) if err != nil { return "", err } if err := fw.Start(); err != nil { return "", err } return fw.Address(), nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 31.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
cmd/kubeadm/app/util/marshal.go
errs = append(errs, errors.Errorf("invalid configuration: kind %q is specified twice in YAML file", gvk.Kind)) continue } knownKinds[gvk.Kind] = true // Save the mapping between the gvk and the bytes that object consists of gvkmap[*gvk] = b } if err := errorsutil.NewAggregate(errs); err != nil { return nil, err } return gvkmap, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 29 05:14:21 UTC 2024 - 5.8K bytes - Viewed (0) -
pkg/volume/util/device_util_linux.go
io := handler.getIo disk, err := findDeviceForPath(device, io) if err != nil { return "" } sysPath := "/sys/block/" if dirs, err := io.ReadDir(sysPath); err == nil { for _, f := range dirs { name := f.Name() if strings.HasPrefix(name, "dm-") { if _, err1 := io.Lstat(sysPath + name + "/slaves/" + disk); err1 == nil { return "/dev/" + name } } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 9.4K bytes - Viewed (0) -
cmd/storage-rest-server.go
if err != nil { return err } return errors.New(string(errorText)) case 2: // Block of data var tmp [4]byte _, err := io.ReadFull(respBody, tmp[:]) if err != nil { return err } length := binary.LittleEndian.Uint32(tmp[:]) n, err := io.CopyBuffer(w, io.LimitReader(respBody, int64(length)), buf) if err != nil { return err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 44.8K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
}, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { errs := Strategy.Validate(genericapirequest.NewContext(), tc.pod) if tc.wantErr && len(errs) == 0 { t.Errorf("expected errors but got none") } if !tc.wantErr && len(errs) != 0 { t.Errorf("unexpected errors: %v", errs.ToAggregate()) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/transport_test.go
sourceURL.Host = serverURL.Host req, err := http.NewRequest("GET", sourceURL.String(), nil) if err != nil { t.Errorf("%v: Unexpected error: %v", name, err) return } if item.reqHost != "" { req.Host = item.reqHost } resp, err := item.transport.RoundTrip(req) if err != nil { t.Errorf("%v: Unexpected error: %v", name, err) return } if item.redirect != "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 13.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go
} err = agg.(error) if err == nil { t.Errorf("expected non-nil") } if s := err.Error(); s != "err" { t.Errorf("expected 'err', got %q", s) } } func TestSingularAggregate(t *testing.T) { var slice = []error{fmt.Errorf("err")} var agg Aggregate var err error agg = NewAggregate(slice) if agg == nil { t.Errorf("expected non-nil") } if s := agg.Error(); s != "err" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 24 13:16:21 UTC 2022 - 12.7K bytes - Viewed (0) -
cmd/kube-controller-manager/app/options/endpointcontroller.go
return nil } // Validate checks validation of EndpointControllerOptions. func (o *EndpointControllerOptions) Validate() []error { if o == nil { return nil } errs := []error{} return errs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 24 09:36:53 UTC 2019 - 2.2K bytes - Viewed (0) -
internal/config/errors-utils.go
func (u Err) Hint(m string, args ...interface{}) Err { e := u.Clone() e.hint = fmt.Sprintf(m, args...) return e } // ErrFn function wrapper type ErrFn func(err error) Err // Create a UI error generator, this is needed to simplify // the update of the detailed error message in several places // in MinIO code func newErrFn(msg, action, hint string) ErrFn { return func(err error) Err { u := Err{ msg: msg,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 3.7K bytes - Viewed (0)