- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for WrapWarning (0.18 sec)
-
pkg/config/validation/envoyfilter/envoyfilter.go
} if len(deprecated) > 0 { return validation.WrapWarning(fmt.Errorf("using deprecated type_url(s); %v", strings.Join(deprecated, ", "))) } return nil } func validateMissingTypedConfigFilterTypes(obj proto.Message) error { missing := recurseMissingTypedConfig(obj.ProtoReflect()) if len(missing) > 0 {
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/config/validation/validation.go
return nil, nil }) validateFuncs = make(map[string]ValidateFunc) ) type ( Warning = agent.Warning Validation = agent.Validation ) // WrapWarning turns an error into a Validation as a warning func WrapWarning(e error) Validation { return Validation{Warning: e} } func AppendValidation(v Validation, vs ...error) Validation { return agent.AppendValidation(v, vs...) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0) -
pkg/config/validation/agent/validation.go
return v.Warning, v.Err } func (v Validation) Error() string { if v.Err == nil { return "" } return v.Err.Error() } // WrapWarning turns an error into a Validation as a warning func WrapWarning(e error) Validation { return Validation{Warning: e} } // wrapper around multierror.Append that enforces the invariant that if all input errors are nil, the output
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/config/validation/virtualservice.go
if value := http.MirrorPercent.GetValue(); value > 100 { errs = AppendValidation(errs, fmt.Errorf("mirror_percent must have a max value of 100 (it has %d)", value)) } errs = AppendValidation(errs, WrapWarning(errors.New(`using deprecated setting "mirrorPercent", use "mirrorPercentage" instead`))) } if http.MirrorPercentage != nil { value := http.MirrorPercentage.GetValue() if value > 100 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:27 UTC 2024 - 9.3K bytes - Viewed (0)