Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 346 for TField (0.16 sec)

  1. src/text/template/exec.go

    	}
    	hasArgs := len(args) > 1 || !isMissing(final)
    	// It's not a method; must be a field of a struct or an element of a map.
    	switch receiver.Kind() {
    	case reflect.Struct:
    		tField, ok := receiver.Type().FieldByName(fieldName)
    		if ok {
    			field, err := receiver.FieldByIndexErr(tField.Index)
    			if !tField.IsExported() {
    				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
    			}
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. pkg/apis/resource/validation/validation.go

    	var allErrs field.ErrorList
    	allItems := sets.New[T]()
    	for i, item := range slice {
    		idxPath := fldPath.Index(i)
    		if allItems.Has(item) {
    			allErrs = append(allErrs, field.Duplicate(idxPath, item))
    		} else {
    			allErrs = append(allErrs, validateItem(item, idxPath)...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  3. schema/relationship.go

    	PrimaryKey    *Field
    	PrimaryValue  string
    	ForeignKey    *Field
    	OwnPrimaryKey bool
    }
    
    func (schema *Schema) parseRelation(field *Field) *Relationship {
    	var (
    		err        error
    		fieldValue = reflect.New(field.IndirectFieldType).Interface()
    		relation   = &Relationship{
    			Name:        field.Name,
    			Field:       field,
    			Schema:      schema,
    			foreignKeys: toColumns(field.TagSettings["FOREIGNKEY"]),
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  4. schema/schema.go

    		}
    
    		bindName := field.BindName()
    		if field.DBName != "" {
    			// nonexistence or shortest path or first appear prioritized if has permission
    			if v, ok := schema.FieldsByDBName[field.DBName]; !ok || ((field.Creatable || field.Updatable || field.Readable) && len(field.BindNames) < len(v.BindNames)) {
    				if _, ok := schema.FieldsByDBName[field.DBName]; !ok {
    					schema.DBNames = append(schema.DBNames, field.DBName)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  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. 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)
  10. pkg/apis/resource/validation/validation_resourceclass_test.go

    				class.Annotations = map[string]string{
    					badName: "hello world",
    				}
    				return class
    			}(),
    		},
    		"missing-driver-name": {
    			wantFailures: field.ErrorList{field.Required(field.NewPath("driverName"), ""),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top