- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for TooLong (0.11 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) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go
} if len(condition.Reason) > maxReasonLen { allErrs = append(allErrs, field.TooLong(fldPath.Child("reason"), condition.Reason, maxReasonLen)) } } 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: Tue Nov 08 01:52:02 UTC 2022 - 13.5K bytes - Viewed (0) -
src/net/dnsconfig_unix_test.go
if len(unsuffixableResults) != 1 { t.Errorf("suffixed names %v; want []", unsuffixableResults[1:]) } // Now test a name that's too long for DNS. tooLong := "a." + longDomain tooLongResults := conf.nameList(tooLong) if tooLongResults != nil { t.Errorf("suffixed names %v; want nil", tooLongResults) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 17:41:32 UTC 2022 - 7.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/os/timeout_test.go
if err != nil { t.Fatal(err) } defer r.Close() defer w.Close() pasvch := make(chan result) go handler(w, pasvch) tooLong := 5 * time.Second max := time.NewTimer(tooLong) defer max.Stop() actvch := make(chan result) go func() { t0 := time.Now() if err := r.SetDeadline(t0.Add(timeout)); err != nil { t.Error(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 17.1K 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)