- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for matchValue (0.41 sec)
-
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) -
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) -
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) -
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) -
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) -
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)