- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 415 for derrs (0.35 sec)
-
cmd/erasure-sets.go
drive := endpoints.GetString(i) state := madmin.DriveStateCorrupt switch { case format != nil: state = madmin.DriveStateOk case sErrs[i] == errUnformattedDisk: state = madmin.DriveStateMissing case sErrs[i] == errDiskNotFound: state = madmin.DriveStateOffline } beforeDrives[i] = madmin.HealDriveInfo{ UUID: func() string { if format != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 37.7K bytes - Viewed (0) -
cmd/format-erasure.go
// countErrs - count a specific error. func countErrs(errs []error, err error) int { i := 0 for _, err1 := range errs { if err1 == err || errors.Is(err1, err) { i++ } } return i } // Does all errors indicate we need to initialize all disks?. func shouldInitErasureDisks(errs []error) bool { return countErrs(errs, errUnformattedDisk) == len(errs) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 23.2K bytes - Viewed (0) -
cmd/kube-apiserver/app/options/validation.go
// Validate checks ServerRunOptions and return a slice of found errs. func (s CompletedOptions) Validate() []error { var errs []error errs = append(errs, s.CompletedOptions.Validate()...) errs = append(errs, s.CloudProvider.Validate()...) errs = append(errs, validateClusterIPFlags(s.Extra)...) errs = append(errs, validateServiceNodePort(s.Extra)...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:06 UTC 2023 - 6.2K bytes - Viewed (0) -
pkg/config/validation/envoyfilter/envoyfilter.go
errs = validation.AppendValidation(errs, fmt.Errorf("Envoy filter: missing applyTo")) // nolint: stylecheck continue } if cp.Patch == nil { errs = validation.AppendValidation(errs, fmt.Errorf("Envoy filter: missing patch")) // nolint: stylecheck continue } if cp.Patch.Operation == networking.EnvoyFilter_Patch_INVALID {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 30 00:31:03 UTC 2024 - 12.2K bytes - Viewed (0) -
pkg/registry/registrytest/validate.go
if t.GetUpdateStrategy() == nil { errs = append(errs, fmt.Errorf("store for type [%v] does not have an UpdateStrategy", k)) } if t.GetDeleteStrategy() == nil { errs = append(errs, fmt.Errorf("store for type [%v] does not have a DeleteStrategy", k)) } } } return errs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Dec 12 15:56:24 UTC 2022 - 1.6K bytes - Viewed (0) -
pkg/kubelet/kubeletconfig/util/files/files_test.go
func (c *test) expect(t *testing.T, fs utilfs.Filesystem, dir string) []error { errs := []error{} for _, f := range c.expects { if err := f.expect(fs, dir); err != nil { msg := fmt.Errorf("expect %#v, got error: %v", f, err) errs = append(errs, msg) if t != nil { t.Errorf("%s", msg) } } } return errs } // run a test case, with an arbitrary function to execute between write and expect
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 07 11:36:13 UTC 2022 - 11.7K bytes - Viewed (0) -
operator/pkg/validate/validate_values.go
pstr := path.String() scope.Debugf("ValuesValidate %s", pstr) vf := validations[pstr] if vf != nil { errs = util.AppendErrs(errs, vf(path, node)) } nn, ok := node.(map[string]any) if !ok { // Leaf, nothing more to recurse. return errs } for k, v := range nn { errs = util.AppendErrs(errs, ValuesValidate(validations, v, append(path, k))) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 2.3K bytes - Viewed (0) -
pkg/config/validation/agent/extensionprovider.go
errs = AppendErrors(errs, err) } if config.PathPrefix != "" { if _, err := url.Parse(config.PathPrefix); err != nil { errs = AppendErrors(errs, fmt.Errorf("invalid pathPrefix %s: %v", config.PathPrefix, err)) } if !strings.HasPrefix(config.PathPrefix, "/") { errs = AppendErrors(errs, fmt.Errorf("pathPrefix should begin with `/` but found %q", config.PathPrefix)) } } return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 11K bytes - Viewed (0) -
pkg/config/validation/agent/validation.go
var errs error if ls.GetAddress() == "" { errs = multierror.Append(errs, errors.New("address is required")) } if err := ValidateProxyAddress(ls.GetAddress()); err != nil { errs = multierror.Append(errs, multierror.Prefix(err, "invalid lightstep address:")) } if ls.GetAccessToken() == "" { errs = multierror.Append(errs, errors.New("access token is required")) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 30.9K bytes - Viewed (0) -
pkg/registry/admissionregistration/validatingadmissionpolicybinding/strategy.go
errs := validation.ValidateValidatingAdmissionPolicyBinding(obj.(*admissionregistration.ValidatingAdmissionPolicyBinding)) if len(errs) == 0 { // if the object is well-formed, also authorize the paramRef if err := v.authorizeCreate(ctx, obj); err != nil { errs = append(errs, field.Forbidden(field.NewPath("spec", "paramRef"), err.Error())) } } return errs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 21:29:56 UTC 2022 - 5.5K bytes - Viewed (0)