- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for Predicates (0.18 sec)
-
internal/bucket/lifecycle/and.go
} return false } // BySize returns true when sz satisfies a // ObjectSizeLessThan/ObjectSizeGreaterthan or a logical AND of these predicates // Note: And combines size and other predicates like Tags, Prefix, etc. This // method applies exclusively to size predicates only. func (a And) BySize(sz int64) bool { if a.ObjectSizeGreaterThan > 0 && sz <= a.ObjectSizeGreaterThan { return false }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 2.9K bytes - Viewed (0) -
internal/bucket/lifecycle/filter.go
v, ok := tagsMap[k] if !ok || v != cv { mismatch = true break } } return !mismatch } // BySize returns true if sz satisfies one of ObjectSizeGreaterThan, // ObjectSizeLessThan predicates or a combination of them via And. func (f Filter) BySize(sz int64) bool { if f.ObjectSizeGreaterThan > 0 && sz <= f.ObjectSizeGreaterThan { return false } if f.ObjectSizeLessThan > 0 &&
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Feb 27 00:01:20 GMT 2024 - 6.2K bytes - Viewed (0) -
src/bytes/bytes_test.go
} } } } type predicate struct { f func(r rune) bool name string } var isSpace = predicate{unicode.IsSpace, "IsSpace"} var isDigit = predicate{unicode.IsDigit, "IsDigit"} var isUpper = predicate{unicode.IsUpper, "IsUpper"} var isValidRune = predicate{ func(r rune) bool { return r != utf8.RuneError }, "IsValidRune", }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
legacyWebhook := getWebhooksFromYaml(t, legacyDefaultInjector) legacyRevWebhook := getWebhooksFromYaml(t, legacyRevisionInjector) // predicate is used to filter out "obvious" test cases, to avoid enumerating all cases // nolint: unparam predicate := func(ls LabelSet) (string, bool) { if ls.namespace.Get("istio-injection") == "disabled" { return "", true }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 18 18:16:49 GMT 2024 - 43.5K bytes - Viewed (0) -
src/bytes/bytes.go
func LastIndexFunc(s []byte, f func(r rune) bool) int { return lastIndexFunc(s, f, true) } // indexFunc is the same as IndexFunc except that if // truth==false, the sense of the predicate function is // inverted. func indexFunc(s []byte, f func(r rune) bool, truth bool) int { start := 0 for start < len(s) { wid := 1 r := rune(s[start]) if r >= utf8.RuneSelf {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0)