Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for XListMapKeys (0.82 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/maplist_test.go

    		},
    		{
    			name: "single key",
    			sts: schema.Structural{
    				Generic: schema.Generic{
    					Type: "array",
    				},
    				Extensions: schema.Extensions{
    					XListType:    &listTypeMap,
    					XListMapKeys: []string{"k"},
    				},
    			},
    			items: []interface{}{
    				map[string]interface{}{
    					"k":  "a",
    					"v1": "a",
    				},
    				map[string]interface{}{
    					"k":  "b",
    					"v1": "b",
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 18:08:11 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation_test.go

    							XListType:    strPtr("map"),
    							XListMapKeys: []string{"a"},
    						},
    					},
    					"integers": {
    						Generic: schema.Generic{
    							Type: "array",
    						},
    						Items: &schema.Structural{
    							Generic: schema.Generic{
    								Type: "integer",
    							},
    						},
    						Extensions: schema.Extensions{
    							XListType:    strPtr("map"),
    							XListMapKeys: []string{"a"},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/common/maplist.go

    	const keyDelimiter = "\x00" // 0 byte should never appear in the composite key except as delimiter
    
    	var delimited strings.Builder
    	for _, key := range ks.sts.XListMapKeys() {
    		v, ok := obj[key]
    		if !ok {
    			return nil, false
    		}
    
    		switch v.(type) {
    		case bool:
    			fmt.Fprintf(&delimited, keyDelimiter+"%t", v)
    		case float64:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 02:56:51 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/deepcopy.go

    		in, out := &in.XPreserveUnknownFields, &out.XPreserveUnknownFields
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(bool)
    			**out = **in
    		}
    	}
    
    	if in.XListMapKeys != nil {
    		in, out := &in.XListMapKeys, &out.XListMapKeys
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    
    	if in.XListType != nil {
    		in, out := &in.XListType, &out.XListType
    		if *in == nil {
    			*out = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/deepcopy.go

    		in, out := &in.XPreserveUnknownFields, &out.XPreserveUnknownFields
    		if *in == nil {
    			*out = nil
    		} else {
    			*out = new(bool)
    			**out = **in
    		}
    	}
    
    	if in.XListMapKeys != nil {
    		in, out := &in.XListMapKeys, &out.XListMapKeys
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    
    	if in.XListType != nil {
    		in, out := &in.XListType, &out.XListType
    		if *in == nil {
    			*out = nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 17:55:23 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation.go

    		}
    	}
    
    	if len(obj) <= 1 {
    		return nil
    	}
    
    	// optimize simple case of one key
    	if len(s.XListMapKeys) == 1 {
    		type unspecifiedKeyValue struct{}
    
    		keyField := s.XListMapKeys[0]
    		keys := make([]interface{}, 0, len(obj))
    		for _, x := range obj {
    			if x == nil {
    				keys = append(keys, unspecifiedKeyValue{}) // nil object means unspecified key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 16 02:47:24 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi.go

    	}
    	if x.XIntOrString {
    		ret.VendorExtensible.AddExtension("x-kubernetes-int-or-string", true)
    	}
    	if len(x.XListMapKeys) > 0 {
    		ret.VendorExtensible.AddExtension("x-kubernetes-list-map-keys", x.XListMapKeys)
    	}
    	if x.XListType != nil {
    		ret.VendorExtensible.AddExtension("x-kubernetes-list-type", *x.XListType)
    	}
    	if x.XMapType != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/zz_generated.deepcopy.go

    )
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    func (in *Extensions) DeepCopyInto(out *Extensions) {
    	*out = *in
    	if in.XListMapKeys != nil {
    		in, out := &in.XListMapKeys, &out.XListMapKeys
    		*out = make([]string, len(*in))
    		copy(*out, *in)
    	}
    	if in.XListType != nil {
    		in, out := &in.XListType, &out.XListType
    		*out = new(string)
    		**out = **in
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. api/api-rules/apiextensions_violation_exceptions.list

    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XIntOrString
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XListMapKeys
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XListType
    API rule violation: names_match,k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1,JSONSchemaProps,XMapType
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 27 20:06:21 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1/jsonschemaprops.go

    	b.XIntOrString = &value
    	return b
    }
    
    // WithXListMapKeys adds the given value to the XListMapKeys field in the declarative configuration
    // and returns the receiver, so that objects can be build by chaining "With" function invocations.
    // If called multiple times, values provided by each call will be appended to the XListMapKeys field.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 28 12:38:10 UTC 2023
    - 25.2K bytes
    - Viewed (0)
Back to top