Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ValidatePositiveQuantityValue (0.21 sec)

  1. pkg/apis/core/validation/validation.go

    	if value.Cmp(resource.Quantity{}) < 0 {
    		allErrs = append(allErrs, field.Invalid(fldPath, value.String(), isNegativeErrorMsg))
    	}
    	return allErrs
    }
    
    // Validates that a Quantity is positive
    func ValidatePositiveQuantityValue(value resource.Quantity, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	if value.Cmp(resource.Quantity{}) <= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
Back to top