Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,771 for keys2 (0.06 sec)

  1. pkg/util/iptree/iptree_test.go

    		return false
    	})
    	if !cmp.Equal(path, keys[:4]) {
    		t.Errorf("Walkpath expected %v got %v", keys[:4], path)
    	}
    	// not match on prefix
    	path = []string{}
    	r.WalkPath(netip.MustParsePrefix("10.1.1.33/26"), func(k netip.Prefix, v int) bool {
    		path = append(path, k.String())
    		return false
    	})
    	if !cmp.Equal(path, keys[:3]) {
    		t.Errorf("Walkpath expected %v got %v", keys[:3], path)
    	}
    	// match exact prefix
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  2. pkg/serviceaccount/openidmetadata_test.go

    	wantPubECDSA := getPublicKey(ecdsaPublicKey).(*ecdsa.PublicKey)
    	var serveKeysTests = []struct {
    		Name     string
    		Keys     []interface{}
    		WantKeys []jose.JSONWebKey
    	}{
    		{
    			Name: "configured public keys",
    			Keys: []interface{}{
    				getPublicKey(rsaPublicKey),
    				getPublicKey(ecdsaPublicKey),
    			},
    			WantKeys: []jose.JSONWebKey{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 02 01:53:17 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          this.keys = new @Nullable Object[initialCapacity];
          this.values = new @Nullable Object[initialCapacity];
        }
    
        private void ensureCapacity(int minCapacity) {
          if (minCapacity > keys.length) {
            int newCapacity = ImmutableCollection.Builder.expandedCapacity(keys.length, minCapacity);
            this.keys = Arrays.copyOf(keys, newCapacity);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. src/text/template/doc.go

    	  Key invocations may be chained and combined with fields to any
    	  depth:
    	    .Field1.Key1.Field2.Key2
    	  Although the key must be an alphanumeric identifier, unlike with
    	  field names they do not need to start with an upper case letter.
    	  Keys can also be evaluated on variables, including chaining:
    	    $x.key1.key2
    	- The name of a niladic method of the data, preceded by a period,
    	  such as
    		.Method
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/collect/Table.java

      /**
       * Associates the specified value with the specified keys. If the table already contained a
       * mapping for those keys, the old value is replaced with the specified value.
       *
       * @param rowKey row key that the value should be associated with
       * @param columnKey column key that the value should be associated with
       * @param value value to be associated with the specified keys
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
Back to top