WrapFieldErrorList wraps the given field.ErrorList adding the given field.Path as root of the Field.
(errs field.ErrorList, path *field.Path)
| 22 | |
| 23 | // WrapFieldErrorList wraps the given field.ErrorList adding the given field.Path as root of the Field. |
| 24 | func WrapFieldErrorList(errs field.ErrorList, path *field.Path) field.ErrorList { |
| 25 | if path == nil { |
| 26 | return errs |
| 27 | } |
| 28 | for i := range errs { |
| 29 | errs[i] = WrapFieldError(errs[i], path) |
| 30 | } |
| 31 | return errs |
| 32 | } |
| 33 | |
| 34 | // ValidateResources validates the Resources object. |
| 35 | func ValidateResources(r *v1beta1.Resources) *field.Error { |
nothing calls this directly
no test coverage detected