[#226] sdk/client: Add tombstone address to the return of DeleteObject

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-10 12:25:13 +03:00 committed by Leonard Lyubich
parent 4567986682
commit 803c91b3eb
2 changed files with 73 additions and 10 deletions

View file

@ -44,7 +44,7 @@ func (t *Tombstone) SetSplitID(v *SplitID) {
SetSplitID(v.ToV2())
}
// SplitID returns identifier of object split hierarchy.
// Members returns list of objects to be deleted.
func (t *Tombstone) Members() []*ID {
msV2 := (*tombstone.Tombstone)(t).
GetMembers()
@ -62,7 +62,7 @@ func (t *Tombstone) Members() []*ID {
return ms
}
// SplitID returns identifier of object split hierarchy.
// SetMembers sets list of objects to be deleted.
func (t *Tombstone) SetMembers(v []*ID) {
var ms []*refs.ObjectID