- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for InclusiveRangeError (0.19 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go
if 1 <= port && port <= 65535 { return nil } return []string{InclusiveRangeError(1, 65535)} } // IsInRange tests that the argument is in an inclusive range. func IsInRange(value int, min int, max int) []string { if value >= min && value <= max { return nil } return []string{InclusiveRangeError(min, max)} } // Now in libcontainer UID/GID limits is 0 ~ 1<<31 - 1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 16:08:43 UTC 2024 - 19K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
const isNotIntegerErrorMsg string = `must be an integer` const isNotPositiveErrorMsg string = `must be greater than zero` var pdPartitionErrorMsg string = validation.InclusiveRangeError(1, 255) var fileModeErrorMsg = "must be a number between 0 and 0777 (octal), both inclusive" // BannedOwners is a black list of object that are not allowed to be owners.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0) -
pkg/apis/core/validation/validation_test.go
FSType: "ext4", ReadOnly: false, }, }, }, errs: []verr{{ etype: field.ErrorTypeInvalid, field: "fc.lun", detail: validation.InclusiveRangeError(0, 255), }}, }, // FlexVolume { name: "valid FlexVolume", vol: core.Volume{ Name: "flex-volume", VolumeSource: core.VolumeSource{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 857.7K bytes - Viewed (0)