[#451] Handle lock objects using tree service
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
bc000f1bc4
commit
dd534e8738
23 changed files with 488 additions and 520 deletions
|
@ -3,8 +3,6 @@ package data
|
|||
import (
|
||||
"encoding/xml"
|
||||
"time"
|
||||
|
||||
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -36,9 +34,17 @@ type (
|
|||
}
|
||||
|
||||
ObjectLock struct {
|
||||
Until time.Time
|
||||
LegalHold bool
|
||||
IsCompliance bool
|
||||
Objects []oid.ID
|
||||
LegalHold *LegalHoldLock
|
||||
Retention *RetentionLock
|
||||
}
|
||||
|
||||
LegalHoldLock struct {
|
||||
Enabled bool
|
||||
}
|
||||
|
||||
RetentionLock struct {
|
||||
Until time.Time
|
||||
IsCompliance bool
|
||||
ByPassedGovernance bool
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue