Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for listMapType (0.38 sec)

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

    					map[string]interface{}{"k": "a2", "v": "b2"},
    					map[string]interface{}{"k": "a3", "v": "b3", "v2": "z"},
    				},
    			},
    			schema: objectTypePtr(map[string]schema.Structural{
    				"listMap": listMapType([]string{"k"}, objectTypePtr(map[string]schema.Structural{
    					"k":  stringType,
    					"v":  stringType,
    					"v2": stringType,
    				})),
    			}),
    			expectCost: map[string]int64{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation_test.go

    			schema: apiextensions.JSONSchemaProps{
    				Type: "object",
    				Properties: map[string]apiextensions.JSONSchemaProps{
    					"field": {
    						Type:         "array",
    						XListType:    &listMapType,
    						XListMapKeys: []string{"k1", "k2"},
    						Items: &apiextensions.JSONSchemaPropsOrArray{
    							Schema: &apiextensions.JSONSchemaProps{
    								Type: "object",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 04:49:59 UTC 2023
    - 24.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    func listSetType(items *schema.Structural) schema.Structural {
    	return arrayType("set", nil, items)
    }
    
    func listMapType(keys []string, items *schema.Structural) schema.Structural {
    	return arrayType("map", keys, items)
    }
    
    func listMapTypePtr(keys []string, items *schema.Structural) *schema.Structural {
    	l := listMapType(keys, items)
    	return &l
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top