Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 1,080 for Field2 (0.11 sec)

  1. pkg/registry/resource/resourceclass/storage/storage_test.go

    		validNewClass("foo"),
    		// matching labels
    		[]labels.Set{},
    		// not matching labels
    		[]labels.Set{
    			{"foo": "bar"},
    		},
    		// matching fields
    		[]fields.Set{
    			{"metadata.name": "foo"},
    		},
    		// not matching fields
    		[]fields.Set{
    			{"metadata.name": "bar"},
    		},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    	return postDoc
    }
    
    // fieldName returns the name of the field as it should appear in JSON format
    // "-" indicates that this field is not part of the JSON representation
    func fieldName(field *ast.Field) string {
    	jsonTag := ""
    	if field.Tag != nil {
    		jsonTag = reflect.StructTag(field.Tag.Value[1 : len(field.Tag.Value)-1]).Get("json") // Delete first and last quotation
    		if strings.Contains(jsonTag, "inline") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/subr.go

    	if !top {
    		expand0(t)
    	}
    
    	u := t
    	if u.IsPtr() {
    		u = u.Elem()
    	}
    
    	if u.IsStruct() || u.IsInterface() {
    		var fields []*types.Field
    		if u.IsStruct() {
    			fields = u.Fields()
    		} else {
    			fields = u.AllMethods()
    		}
    		for _, f := range fields {
    			if f.Embedded == 0 {
    				continue
    			}
    			if f.Sym == nil {
    				continue
    			}
    			expand1(f.Type, false)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/stripmeta.go

    )
    
    type stripMetaManager struct {
    	fieldManager Manager
    
    	// stripSet is the list of fields that should never be part of a mangedFields.
    	stripSet *fieldpath.Set
    }
    
    var _ Manager = &stripMetaManager{}
    
    // NewStripMetaManager creates a new Manager that strips metadata and typemeta fields from the manager's fieldset.
    func NewStripMetaManager(fieldManager Manager) Manager {
    	return &stripMetaManager{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 21:44:00 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. pkg/registry/core/endpoint/storage/storage_test.go

    		validNewEndpoints(),
    		// matching labels
    		[]labels.Set{},
    		// not matching labels
    		[]labels.Set{
    			{"foo": "bar"},
    		},
    		// matching fields
    		[]fields.Set{
    			{"metadata.name": "foo"},
    		},
    		// not matching fields
    		[]fields.Set{
    			{"metadata.name": "bar"},
    			{"name": "foo"},
    		},
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  6. src/internal/reflectlite/export_test.go

    package reflectlite
    
    import (
    	"unsafe"
    )
    
    // Field returns the i'th field of the struct v.
    // It panics if v's Kind is not Struct or i is out of range.
    func Field(v Value, i int) Value {
    	if v.kind() != Struct {
    		panic(&ValueError{"reflect.Value.Field", v.kind()})
    	}
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	if uint(i) >= uint(len(tt.Fields)) {
    		panic("reflect: Field index out of range")
    	}
    	field := &tt.Fields[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/rest/meta_test.go

    // TestHasObjectMetaSystemFieldValues validates that true is returned if and only if all fields are populated
    func TestHasObjectMetaSystemFieldValues(t *testing.T) {
    	resource := metav1.ObjectMeta{}
    	objMeta, err := meta.Accessor(&resource)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if metav1.HasObjectMetaSystemFieldValues(objMeta) {
    		t.Errorf("the resource does not have all fields yet populated, but incorrectly reports it does")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jun 19 01:47:23 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  8. pkg/registry/core/configmap/storage/storage_test.go

    			{"label-2": "value-2"},
    		},
    		// not matching labels
    		[]labels.Set{
    			{"foo": "bar"},
    		},
    		// matching fields
    		[]fields.Set{
    			{"metadata.namespace": "default"},
    			{"metadata.name": "foo"},
    		},
    		// not matching fields
    		[]fields.Set{
    			{"metadata.name": "bar"},
    			{"name": "foo"},
    		},
    	)
    }
    
    func TestShortNames(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 12 20:55:35 UTC 2019
    - 4.3K bytes
    - Viewed (0)
  9. schema/schema.go

    		if fieldStruct := modelType.Field(i); ast.IsExported(fieldStruct.Name) {
    			if field := schema.ParseField(fieldStruct); field.EmbeddedSchema != nil {
    				schema.Fields = append(schema.Fields, field.EmbeddedSchema.Fields...)
    			} else {
    				schema.Fields = append(schema.Fields, field)
    			}
    		}
    	}
    
    	for _, field := range schema.Fields {
    		if field.DBName == "" && field.DataType != "" {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/registry/rest/update.go

    	// the object.  For example: remove fields that are not to be persisted,
    	// sort order-insensitive list fields, etc.  This should not remove fields
    	// whose presence would be considered a validation error.
    	PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
    	// ValidateUpdate is invoked after default fields in the object have been
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 11.8K bytes
    - Viewed (0)
Back to top