- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for withMaxLength (0.27 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go
schemaGenerator: func(max *int64) *schema.Structural { strType := withMaxLength(primitiveType("string", ""), max) beforeLen := int64(2) afterLen := int64(4) objType := objectType(map[string]schema.Structural{ "str": strType, "before": withMaxLength(primitiveType("string", ""), &beforeLen), "after": withMaxLength(primitiveType("string", ""), &afterLen), })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 20:13:14 UTC 2024 - 51.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/jsonschemaprops.go
b.ExclusiveMinimum = &value return b } // WithMaxLength sets the MaxLength field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MaxLength field is set to the value of the last call. func (b *JSONSchemaPropsApplyConfiguration) WithMaxLength(value int64) *JSONSchemaPropsApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 28 12:38:10 UTC 2023 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1beta1/jsonschemaprops.go
b.ExclusiveMinimum = &value return b } // WithMaxLength sets the MaxLength field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the MaxLength field is set to the value of the last call. func (b *JSONSchemaPropsApplyConfiguration) WithMaxLength(value int64) *JSONSchemaPropsApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 28 12:38:10 UTC 2023 - 25.2K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go
{ Rule: rule, }, } return s } func cloneWithRule(s *schema.Structural, rule string) *schema.Structural { s = s.DeepCopy() return withRulePtr(s, rule) } func withMaxLength(s schema.Structural, maxLength *int64) schema.Structural { if s.ValueValidation == nil { s.ValueValidation = &schema.ValueValidation{} } s.ValueValidation.MaxLength = maxLength return s }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 17:14:10 UTC 2024 - 159.9K bytes - Viewed (0)