mirror of
https://github.com/minio/minio.git
synced 2026-11-13 06:43:51 +00:00
allow expiration of all versions during Listing() (#16757)
This commit is contained in:
1 parent
18f9cccfa7
commit
b984bf8d1a
9 files changed
+127
-93
No files matched your search
@@ -70,6 +70,24 @@ const (
|
||||
ActionCount
|
||||
)
|
||||
|
||||
// DeleteRestored - Returns true if action demands delete on restored objects
|
||||
func (a Action) DeleteRestored() bool {
|
||||
return a == DeleteRestoredAction || a == DeleteRestoredVersionAction
|
||||
}
|
||||
|
||||
// DeleteVersioned - Returns true if action demands delete on a versioned object
|
||||
func (a Action) DeleteVersioned() bool {
|
||||
return a == DeleteVersionAction || a == DeleteRestoredVersionAction
|
||||
}
|
||||
|
||||
// Delete - Returns true if action demands delete on all objects (including restored)
|
||||
func (a Action) Delete() bool {
|
||||
if a.DeleteRestored() {
|
||||
return true
|
||||
}
|
||||
return a == DeleteVersionAction || a == DeleteAction
|
||||
}
|
||||
|
||||
// Lifecycle - Configuration for bucket lifecycle.
|
||||
type Lifecycle struct {
|
||||
XMLName xml.Name `xml:"LifecycleConfiguration"`
|
||||
|
||||
Reference in new issue
Block a user