Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for matchValue (0.52 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate.go

    // wil be returned.
    func (s *SelectionPredicate) MatcherIndex(ctx context.Context) []MatchValue {
    	var result []MatchValue
    	for _, field := range s.IndexFields {
    		if value, ok := s.Field.RequiresExactMatch(field); ok {
    			result = append(result, MatchValue{IndexName: FieldIndex(field), Value: value})
    		} else if field == "metadata.namespace" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate_test.go

    				Resource:          "pods",
    			}),
    			expected: []MatchValue{{IndexName: FieldIndex("metadata.namespace"), Value: "default"}},
    		},
    		"Match label": {
    			labelSelector: "name=foo",
    			fieldSelector: "uid=12345",
    			indexLabels:   []string{"name"},
    			indexFields:   []string{},
    			ctx:           context.Background(),
    			expected:      []MatchValue{{IndexName: LabelIndex("name"), Value: "foo"}},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 10:39:09 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. pilot/pkg/model/config.go

    	found := false
    	var matchHost host.Name
    	var matchValue V
    
    	for h, v := range wildcard {
    		if strings.HasSuffix(needle, string(h[1:])) {
    			if !found {
    				matchHost = h
    				matchValue = wildcard[h]
    				found = true
    			} else if host.MoreSpecific(h, matchHost) {
    				matchHost = h
    				matchValue = v
    			}
    		}
    	}
    
    	return matchHost, matchValue, found
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributesSchemaTest.groovy

            given:
            def attribute = Attribute.of(String)
            schema.attribute(attribute)
    
            expect:
            !schema.matcher().selectionSchema.matchValue(attribute, "a", "b")
            schema.matcher().selectionSchema.matchValue(attribute, "a", "a")
    
            !schema.matcher().isMatching(attribute, "a", "b")
            schema.matcher().isMatching(attribute, "a", "a")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultAttributeMatcher.java

                    boolean match = schema.matchValue(attribute, requestedValue.get(), coercedValue);
                    if (!match) {
                        return false;
                    }
                }
            }
            return true;
        }
    
        @Override
        public <T> boolean isMatching(Attribute<T> attribute, T candidate, T requested) {
            return schema.matchValue(attribute, requested, candidate);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    		// TODO: if multiple indexes match, return the one with the fewest items, so as to do as much filtering as possible.
    		for _, matchValue := range matchValues {
    			if result, err := w.store.ByIndex(matchValue.IndexName, matchValue.Value); err == nil {
    				return result, w.resourceVersion, matchValue.IndexName, nil
    			}
    		}
    		return w.store.List(), w.resourceVersion, "", nil
    	}()
    
    	return result, rv, index, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/AttributeSelectionSchema.java

         */
        @Nullable
        Set<Object> disambiguate(Attribute<?> attribute, @Nullable Object requested, Set<Object> candidates);
    
        boolean matchValue(Attribute<?> attribute, Object requested, Object candidate);
    
        @Nullable
        Attribute<?> getAttribute(String name);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    // Everything accepts all objects.
    var Everything = SelectionPredicate{
    	Label: labels.Everything(),
    	Field: fields.Everything(),
    }
    
    // MatchValue defines a pair (`<index name>`, `<value for that index>`).
    type MatchValue struct {
    	IndexName string
    	Value     string
    }
    
    // Pass an UpdateFunc to Interface.GuaranteedUpdate to make an update
    // that is guaranteed to succeed.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    		t.Errorf("Used index %q but expected none to be used", indexUsed)
    	}
    
    	// list by label index.
    	matchValues := []storage.MatchValue{
    		{IndexName: "l:label", Value: "value1"},
    		{IndexName: "f:spec.nodeName", Value: "node2"},
    	}
    	list, resourceVersion, indexUsed, err = store.WaitUntilFreshAndList(ctx, 5, matchValues)
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if resourceVersion != 5 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java

                    return Collections.singleton(requested);
                }
    
                return null;
            }
    
            @Override
            public boolean matchValue(Attribute<?> attribute, Object requested, Object candidate) {
                if (requested.equals(candidate)) {
                    return true;
                }
    
                CompatibilityCheckResult<Object> result = null;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 16:59:54 UTC 2024
    - 16.1K bytes
    - Viewed (0)
Back to top