func ValidateNonnegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList {
	allErrs := field.ErrorList{}
	if value.Cmp(resource.Quantity{}) < 0 {
		allErrs = append(allErrs, field.Invalid(fldPath, value.String(), isNegativeErrorMsg))
	}
	return allErrs
}
// ValidateNonnegativeQuantity checks that a Quantity is not negative.
ValidateNonnegativeQuantity checks that a Quantity is not negative.
// ValidateNonnegativeQuantity checks that a Quantity is not negative .
func ValidateNonnegativeQuantity(value resource.Quantity, fldPath *field.Path) field.ErrorList {
	allErrs := field.ErrorList{}
	if value.Cmp(resource.Quantity{}) < 0 {
		allErrs = append(allErrs, field.Invalid(fldPath, value.String(), isNegativeErrorMsg))
	}
	return allErrs
}
func ValidateNonnegativeQuantity ( value resource . Quantity , fldPath * field . Path ) field . ErrorList { allErrs := field . ErrorList { } if value . Cmp ( resource . Quantity { } ) < 0 { allErrs = append ( allErrs , field . Invalid ( fldPath , value . String ( ) , isNegativeErrorMsg ) ) } return allErrs }
ValidateNonnegativeQuantity checks that a Quantity is not negative.
ValidateNonnegativeQuantity checks that a Quantity is not negative .