- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for validateSliceIsASet (0.13 sec)
-
pkg/apis/resource/validation/validation.go
} if ref.UID == "" { allErrs = append(allErrs, field.Required(fldPath.Child("uid"), "")) } return allErrs } // validateSliceIsASet ensures that a slice contains no duplicates and does not exceed a certain maximum size. func validateSliceIsASet[T comparable](slice []T, maxSize int, validateItem func(item T, fldPath *field.Path) field.ErrorList, fldPath *field.Path) field.ErrorList { var allErrs field.ErrorList
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.3K bytes - Viewed (0)