[#195] Add handling lock headers for PUT and COPY

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-02-28 13:22:07 +03:00 committed by Angira Kekteeva
parent fe9eb9cedc
commit 8553158b81
8 changed files with 106 additions and 6 deletions

View file

@ -1,5 +1,7 @@
package data
import "time"
type (
ObjectLockConfiguration struct {
ObjectLockEnabled string `xml:"ObjectLockEnabled" json:"ObjectLockEnabled"`
@ -15,4 +17,10 @@ type (
Mode string `xml:"Mode" json:"Mode"`
Years int64 `xml:"Years" json:"Years"`
}
ObjectLock struct {
Until time.Time
LegalHold bool
IsCompliance bool
}
)