- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 799 for keys2 (0.07 sec)
-
cmd/kubeadm/app/componentconfigs/checksums.go
// Then iterate over that slice to fetch the values to be hashed. keys := []string{} for key := range cm.Data { keys = append(keys, key) } sort.Strings(keys) for _, key := range keys { hash.Write([]byte(cm.Data[key])) } // Do the same as above, but for binaryData this time. keys = []string{} for key := range cm.BinaryData {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 17 14:40:46 UTC 2021 - 2.2K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue58611.go
type Set[T comparable] map[T]struct{} func (s *Set[string]) String() string { keys := make([]string, 0, len(*s)) for k := range *s { keys = append(keys, k) } sort.Strings(keys /* ERRORx "cannot use keys.*with string declared at.*|type parameter" */ ) return strings /* ERROR "cannot use strings.Join" */ .Join(keys /* ERRORx "cannot use keys.*with string declared at.*|type parameter" */ , ",")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 22 00:40:19 UTC 2023 - 742 bytes - Viewed (0) -
pilot/pkg/model/xds_cache.go
} func (x XdsCacheImpl) Keys(t string) []any { switch t { case CDSType: keys := x.cds.Keys() return convertToAnySlices(keys) case EDSType: keys := x.eds.Keys() return convertToAnySlices(keys) case SDSType: keys := x.sds.Keys() return convertToAnySlices(keys) case RDSType: keys := x.rds.Keys() return convertToAnySlices(keys) default: return nil } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 02 07:02:05 UTC 2023 - 6.1K bytes - Viewed (0) -
pkg/api/testing/compat/compatibility_tester.go
} t.Logf("2: Encoded value: %v", string(output)) } } func getJSONValue(data map[string]interface{}, keys ...string) (interface{}, bool, error) { // No keys, current value is it if len(keys) == 0 { return data, true, nil } // Get the key (and optional index) key := keys[0] index := -1 if matches := regexp.MustCompile(`^(.*)\[(\d+)\]$`).FindStringSubmatch(key); len(matches) > 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 20 22:26:16 UTC 2019 - 3.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
int minIndex = 0; for (int i = 1; i < keys.size(); i++) { if (keys.get(i) < keys.get(minIndex)) { minIndex = i; } } Optional<BinaryNode> leftChild = createTreap(keys.subList(0, minIndex)); Optional<BinaryNode> rightChild = createTreap(keys.subList(minIndex + 1, keys.size())); return Optional.of(new BinaryNode(keys.get(minIndex), leftChild, rightChild)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 26 19:18:53 UTC 2019 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/listtype/validation.go
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 continue } x := x.(map[string]interface{}) // undefined key? key, ok := x[keyField] if !ok { keys = append(keys, unspecifiedKeyValue{}) continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 16 02:47:24 UTC 2021 - 5.7K bytes - Viewed (0) -
platforms/jvm/platform-jvm/src/test/groovy/org/gradle/api/java/archives/internal/DefaultManifestMergeSpecTest.groovy
DefaultManifest baseManifest = new DefaultManifest(Mock(FileResolver)) baseManifest.attributes key1: 'value1', key2: 'value2' mergeSpec.from(new DefaultManifest(Mock(FileResolver))) mergeSpec.eachEntry {ManifestMergeDetails details -> if (details.getKey() == 'key2') { details.exclude() } } expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 7.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache_test.go
c.Add("short-lived", "12345", 1*time.Millisecond) // ensure the entry expired fakeClock.Step(2 * time.Millisecond) // Keys() should not return expired keys. assertKeys(t, c.Keys(), []interface{}{}) expectNotEntry(t, c, "short-lived") } func TestLRUOverflow(t *testing.T) { c := NewLRUExpireCache(4) c.Add("elem1", "1", 10*time.Hour) c.Add("elem2", "2", 10*time.Hour) c.Add("elem3", "3", 10*time.Hour)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 4.3K bytes - Viewed (0) -
pkg/jwt/routing_test.go
}, { name: "@request.auth.claims[key1][key2]", want: RoutingClaim{Match: true, Separator: Square, Claims: []string{"key1", "key2"}}, }, { name: "@request.auth.claims[key1][KEY2]", want: RoutingClaim{Match: true, Separator: Square, Claims: []string{"key1", "KEY2"}}, }, { name: "@request.auth.claims[key1] [key2]",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 11 16:38:57 UTC 2023 - 3K bytes - Viewed (0) -
src/net/http/cgi/cgi_main.go
} fmt.Printf("test=Hello CGI\r\n") keys := make([]string, 0, len(params)) for k := range params { keys = append(keys, k) } slices.Sort(keys) for _, key := range keys { fmt.Printf("param-%s=%s\r\n", key, params.Get(key)) } envs := envMap(os.Environ()) keys = make([]string, 0, len(envs)) for k := range envs { keys = append(keys, k) } slices.Sort(keys) for _, key := range keys {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.1K bytes - Viewed (0)