mirror of
https://github.com/minio/minio.git
synced 2025-11-23 19:17:43 -05:00
ilm: ObjectSizeLessThan and ObjectSizeGreaterThan (#18500)
This commit is contained in:
committed by
GitHub
parent
e6b0fc465b
commit
a93214ea63
@@ -282,6 +282,9 @@ func (lc Lifecycle) FilterRules(obj ObjectOpts) []Rule {
|
||||
if !obj.DeleteMarker && !rule.Filter.TestTags(obj.UserTags) {
|
||||
continue
|
||||
}
|
||||
if !obj.DeleteMarker && !rule.Filter.BySize(obj.Size) {
|
||||
continue
|
||||
}
|
||||
rules = append(rules, rule)
|
||||
}
|
||||
return rules
|
||||
@@ -293,6 +296,7 @@ type ObjectOpts struct {
|
||||
Name string
|
||||
UserTags string
|
||||
ModTime time.Time
|
||||
Size int64
|
||||
VersionID string
|
||||
IsLatest bool
|
||||
DeleteMarker bool
|
||||
|
||||
Reference in New Issue
Block a user