Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 681 for TField (0.24 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    	if value == "" {
    		if required {
    			return field.ErrorList{field.Required(fldPath, "")}
    		}
    		return field.ErrorList{}
    	}
    	for _, a := range accepted {
    		if a == value {
    			return field.ErrorList{}
    		}
    	}
    	return field.ErrorList{field.NotSupported(fldPath, value, accepted)}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/JavaRecordCodec.kt

        private
        suspend fun ReadContext.readFields(fields: List<Field>): List<Any?> {
            val args = mutableListOf<Any?>()
            for (field in fields) {
                val fieldName = field.name
                unsupportedFieldTypeFor(field)?.let {
                    reportUnsupportedFieldType(it, "deserialize", fieldName)
                }
                readPropertyValue(PropertyKind.Field, fieldName) { fieldValue ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    func validateGeneric(g *Generic, lvl level, fldPath *field.Path) field.ErrorList {
    	if g == nil {
    		return nil
    	}
    
    	return nil
    }
    
    // validateExtensions checks Kubernetes vendor extensions of a structural schema.
    func validateExtensions(x *Extensions, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    
    	if x.XIntOrString && x.XPreserveUnknownFields {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. pkg/apis/core/validation/validation.go

    func ValidateAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList {
    	return apimachineryvalidation.ValidateAnnotations(annotations, fldPath)
    }
    
    func ValidateDNS1123Label(value string, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	for _, msg := range validation.IsDNS1123Label(value) {
    		allErrs = append(allErrs, field.Invalid(fldPath, value, msg))
    	}
    	return allErrs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 349.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    	if len(issuerURL) == 0 {
    		return field.ErrorList{field.Required(fldPath, "URL is required")}
    	}
    
    	return validateURL(issuerURL, disallowedIssuers, fldPath)
    }
    
    func validateIssuerDiscoveryURL(issuerURL, issuerDiscoveryURL string, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    
    	if len(issuerDiscoveryURL) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  6. pkg/apis/resource/validation/validation_resourceclaim_test.go

    		wantFailures field.ErrorList
    	}{
    		"good-claim": {
    			claim: testClaim(goodName, goodNS, goodClaimSpec),
    		},
    		"missing-name": {
    			wantFailures: field.ErrorList{field.Required(field.NewPath("metadata", "name"), "name or generateName is required")},
    			claim:        testClaim("", goodNS, goodClaimSpec),
    		},
    		"bad-name": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  7. pkg/apis/admissionregistration/validation/validation.go

    	var allErrors field.ErrorList
    	if len(resources) == 0 {
    		allErrors = append(allErrors, field.Required(fldPath, ""))
    	}
    	for i, resource := range resources {
    		if resource == "" {
    			allErrors = append(allErrors, field.Required(fldPath.Index(i), ""))
    		}
    		if strings.Contains(resource, "/") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  8. scan.go

    		} else {
    			mapValue[column] = nil
    		}
    	}
    }
    
    func (db *DB) scanIntoStruct(rows Rows, reflectValue reflect.Value, values []interface{}, fields []*schema.Field, joinFields [][]*schema.Field) {
    	for idx, field := range fields {
    		if field != nil {
    			values[idx] = field.NewValuePool.Get()
    		} else if len(fields) == 1 {
    			if reflectValue.CanAddr() {
    				values[idx] = reflectValue.Addr().Interface()
    			} else {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. staging/src/k8s.io/client-go/applyconfigurations/core/v1/podsecuritycontext.go

    	return &PodSecurityContextApplyConfiguration{}
    }
    
    // WithSELinuxOptions sets the SELinuxOptions 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 SELinuxOptions field is set to the value of the last call.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. api/maven-api-plugin/src/main/mdo/plugin.mdo

            </field>
            <field>
              <name>version</name>
              <version>1.0.0+</version>
              <description>The version of the plugin.</description>
              <type>String</type>
              <required>true</required>
            </field>
            <field>
              <name>goalPrefix</name>
              <version>1.0.0+</version>
              <description></description>
              <type>String</type>
            </field>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top