- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for BySize (0.18 sec)
-
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 Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Feb 27 00:01:20 GMT 2024 - 6.2K bytes - Viewed (0) -
internal/bucket/lifecycle/and.go
return true } x[t.Key] = struct{}{} } 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 {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 2.9K bytes - Viewed (0) -
internal/bucket/lifecycle/filter_test.go
{ filter: fiLtAndGt, objSize: 100*humanize.MiByte + 1, want: false, }, } for i, test := range tests { t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) { if got := test.filter.BySize(test.objSize); got != test.want { t.Fatalf("Expected %v but got %v", test.want, got) } }) } } func TestTestTags(t *testing.T) { noTags := Filter{ set: true, And: And{
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Feb 27 00:01:20 GMT 2024 - 7.2K bytes - Viewed (0) -
internal/bucket/lifecycle/lifecycle.go
continue } if !strings.HasPrefix(obj.Name, rule.GetPrefix()) { continue } if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) { continue } if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) { continue } rules = append(rules, rule) } return rules } // ObjectOpts provides information to deduce the lifecycle actions // which can be triggered on the resultant object.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sat Mar 09 06:41:22 GMT 2024 - 17K bytes - Viewed (0) -
api/go1.txt
pkg runtime, type MemStats struct pkg runtime, type MemStats struct, Alloc uint64 pkg runtime, type MemStats struct, BuckHashSys uint64 pkg runtime, type MemStats struct, BySize [61]struct pkg runtime, type MemStats struct, DebugGC bool pkg runtime, type MemStats struct, EnableGC bool pkg runtime, type MemStats struct, Frees uint64 pkg runtime, type MemStats struct, HeapAlloc uint64
Plain Text - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (1)