forked from TrueCloudLab/frostfs-s3-gw
8553158b81
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
26 lines
581 B
Go
26 lines
581 B
Go
package data
|
|
|
|
import "time"
|
|
|
|
type (
|
|
ObjectLockConfiguration struct {
|
|
ObjectLockEnabled string `xml:"ObjectLockEnabled" json:"ObjectLockEnabled"`
|
|
Rule *ObjectLockRule `xml:"Rule" json:"Rule"`
|
|
}
|
|
|
|
ObjectLockRule struct {
|
|
DefaultRetention *DefaultRetention `xml:"DefaultRetention" json:"DefaultRetention"`
|
|
}
|
|
|
|
DefaultRetention struct {
|
|
Days int64 `xml:"Days" json:"Days"`
|
|
Mode string `xml:"Mode" json:"Mode"`
|
|
Years int64 `xml:"Years" json:"Years"`
|
|
}
|
|
|
|
ObjectLock struct {
|
|
Until time.Time
|
|
LegalHold bool
|
|
IsCompliance bool
|
|
}
|
|
)
|