- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for TooLong (0.13 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors.go
return &Error{ErrorTypeForbidden, field.String(), "", detail} } // TooLong returns a *Error indicating "too long". This is used to // report that the given value is too long. This is similar to // Invalid, but the returned error will not include the too-long // value. func TooLong(field *Path, value interface{}, maxLength int) *Error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 11.1K bytes - Viewed (0) -
pkg/apis/core/validation/names.go
return el } // validate that segments[0] is less than 253 characters altogether maxDomainSegmentLength := validation.DNS1123SubdomainMaxLength if len(segments[0]) > maxDomainSegmentLength { el = append(el, field.TooLong(fldPath, segments[0], maxDomainSegmentLength)) } // validate that segments[0] consists of valid DNS1123 labels separated by '.' domainLabels := strings.Split(segments[0], ".") for _, lbl := range domainLabels {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 5.5K bytes - Viewed (0) -
pkg/apis/storagemigration/validation/validation.go
if len(condition.Reason) > maxReasonLen { allErrs = append(allErrs, field.TooLong(fldPath.Child("reason"), condition.Reason, maxReasonLen)) } } const maxMessageLen int = 32 * 1024 // 32768 if len(condition.Message) > maxMessageLen { allErrs = append(allErrs, field.TooLong(fldPath.Child("message"), condition.Message, maxMessageLen)) } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 9.5K bytes - Viewed (0) -
pkg/apis/storage/validation/validation.go
allErrs = append(allErrs, field.TooLong(fldPath, metadata, maxAttachedVolumeMetadataSize)) } return allErrs } func validateVolumeError(e *storage.VolumeError, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if e == nil { return allErrs } if len(e.Message) > maxVolumeErrorMessageSize {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 00:47:13 UTC 2024 - 25.5K bytes - Viewed (0) -
src/os/exec/exec_test.go
} return cmd } func TestWaitInterrupt(t *testing.T) { t.Parallel() // tooLong is an arbitrary duration that is expected to be much longer than // the test runs, but short enough that leaked processes will eventually exit // on their own. const tooLong = 10 * time.Minute // Control case: with no cancellation and no WaitDelay, we should wait for the // process to exit.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
src/archive/tar/common.go
// but neither GNU nor BSD tar checks for it. tooLong := len(s) > size allowLongGNU := paxKey == paxPath || paxKey == paxLinkpath if hasNUL(s) || (tooLong && !allowLongGNU) { whyNoGNU = fmt.Sprintf("GNU cannot encode %s=%q", name, s) format.mustNotBe(FormatGNU) } if !isASCII(s) || tooLong { canSplitUSTAR := paxKey == paxPath
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 16:01:50 UTC 2024 - 24.7K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation_test.go
Request: newCSRPEM(t), // this string is longer than the max signerName limit (635 chars) SignerName: maxLengthSignerName + ".toolong", }, }, errs: field.ErrorList{ field.TooLong(specPath.Child("signerName"), maxLengthSignerName+".toolong", len(maxLengthSignerName)), }, }, "signerName with a fqdn greater than 253 characters should be rejected": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 61K bytes - Viewed (0) -
pkg/apis/certificates/validation/validation.go
func validateTrustBundle(path *field.Path, in string) field.ErrorList { var allErrors field.ErrorList if len(in) > certificates.MaxTrustBundleSize { allErrors = append(allErrors, field.TooLong(path, fmt.Sprintf("<value omitted, len %d>", len(in)), certificates.MaxTrustBundleSize)) return allErrors } blockDedupe := map[string][]int{} rest := []byte(in) var b *pem.Block i := -1
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:49 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/apis/networking/validation/validation.go
func validateIngressClassSpec(spec *networking.IngressClassSpec, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(spec.Controller) > maxLenIngressClassController { allErrs = append(allErrs, field.TooLong(fldPath.Child("controller"), spec.Controller, maxLenIngressClassController)) } allErrs = append(allErrs, validation.IsDomainPrefixedPath(fldPath.Child("controller"), spec.Controller)...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 07 14:48:01 UTC 2024 - 31.5K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
if rule.SucceededIndexes != nil { succeededIndexes := rulePath.Child("succeededIndexes") if len(*rule.SucceededIndexes) > maxJobSuccessPolicySucceededIndexesLimit { allErrs = append(allErrs, field.TooLong(succeededIndexes, *rule.SucceededIndexes, maxJobSuccessPolicySucceededIndexesLimit)) } var err error if totalIndexes, err = validateIndexesFormat(*rule.SucceededIndexes, *spec.Completions); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0)