forked from TrueCloudLab/frostfs-s3-gw
[#195] Add handling lock headers for PUT and COPY
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
fe9eb9cedc
commit
8553158b81
8 changed files with 106 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue