Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for stringSlice (0.18 sec)

  1. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.yaml

    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/api/resource/v1alpha2/namedresources.go

    	StringValue *string `json:"string,omitempty" protobuf:"bytes,5,opt,name=string"`
    	// StringSliceValue is an array of strings.
    	StringSliceValue *NamedResourcesStringSlice `json:"stringSlice,omitempty" protobuf:"bytes,9,rep,name=stringSlice"`
    	// VersionValue is a semantic version according to semver.org spec 2.0.0.
    	VersionValue *string `json:"version,omitempty" protobuf:"bytes,10,opt,name=version"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.yaml

    namedResources:
      instances:
      - attributes:
        - bool: true
          int: 7
          intSlice:
            ints:
            - 1
          name: nameValue
          quantity: "0"
          string: stringValue
          stringSlice:
            strings:
            - stringsValue
          version: versionValue
        name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/crypto/tls/bogo_shim_test.go

    	_          = flag.Bool("use-custom-verify-callback", false, "")
    )
    
    type stringSlice []string
    
    func flagStringSlice(name, usage string) *stringSlice {
    	f := &stringSlice{}
    	flag.Var(f, name, usage)
    	return f
    }
    
    func (saf stringSlice) String() string {
    	return strings.Join(saf, ",")
    }
    
    func (saf stringSlice) Set(s string) error {
    	saf = append(saf, s)
    	return nil
    }
    
    func bogoShim() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/testdata/HEAD/resource.k8s.io.v1alpha2.ResourceSlice.json

                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
                  ]
                },
                "version": "versionValue"
              }
            ]
          }
        ]
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/v1.30.0/resource.k8s.io.v1alpha2.ResourceSlice.json

                "bool": true,
                "int": 7,
                "intSlice": {
                  "ints": [
                    1
                  ]
                },
                "string": "stringValue",
                "stringSlice": {
                  "strings": [
                    "stringsValue"
                  ]
                },
                "version": "versionValue"
              }
            ]
          }
        ]
      }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 08:52:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. pkg/apis/resource/namedresources.go

    	// resolves to the corresponding value of the instance under evaluation.
    	// For example:
    	//
    	//    attributes.quantity["a"].isGreaterThan(quantity("0")) &&
    	//    attributes.stringslice["b"].isSorted()
    	Selector string
    }
    
    // NamedResourcesFilter is used in ResourceFilterModel.
    type NamedResourcesFilter struct {
    	// Selector is a CEL expression which must evaluate to true if a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 12:18:45 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/sort/sort_slices_benchmark_test.go

    		}
    		ss[i] = sb.String()
    	}
    	return ss
    }
    
    func BenchmarkSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		Sort(StringSlice(ss))
    	}
    }
    
    func BenchmarkSlicesSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		slices.Sort(ss)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. pkg/apis/resource/structured/namedresources/validation/validation_test.go

    		},
    		"intslice": {
    			selector: `attributes.intslice["name"].isSorted()`,
    		},
    		"string": {
    			selector: `attributes.string["name"] == "fish"`,
    		},
    		"stringslice": {
    			selector: `attributes.stringslice["name"].isSorted()`,
    		},
    		"version": {
    			selector: `attributes.version["name"].isGreaterThan(semver("1.0.0"))`,
    		},
    	}
    
    	for name, scenario := range scenarios {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. hack/verify-flags-underscore.py

                   re.compile('.Int[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Bool[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Duration[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.StringSlice[P]?\("([^"]*)",[^,]+,[^)]+\)') ]
    
        new_excluded_flags = set()
        # walk all the files looking for any flags being declared
        for pathname in files:
            if not pathname.endswith(".go"):
                continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top