[#226] v2/object: Add tombstone field to DeleteResponseBody
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c064760f5d
commit
4567986682
5 changed files with 61 additions and 6 deletions
|
@ -139,7 +139,9 @@ type DeleteRequestBody struct {
|
|||
addr *refs.Address
|
||||
}
|
||||
|
||||
type DeleteResponseBody struct{}
|
||||
type DeleteResponseBody struct {
|
||||
tombstone *refs.Address
|
||||
}
|
||||
|
||||
type HeadRequestBody struct {
|
||||
addr *refs.Address
|
||||
|
@ -1124,6 +1126,22 @@ func (r *DeleteRequest) SetVerificationHeader(v *session.RequestVerificationHead
|
|||
}
|
||||
}
|
||||
|
||||
// GetTombstone returns tombstone address.
|
||||
func (r *DeleteResponseBody) GetTombstone() *refs.Address {
|
||||
if r != nil {
|
||||
return r.tombstone
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetTombstone sets tombstone address.
|
||||
func (r *DeleteResponseBody) SetTombstone(v *refs.Address) {
|
||||
if r != nil {
|
||||
r.tombstone = v
|
||||
}
|
||||
}
|
||||
|
||||
func (r *DeleteResponse) GetBody() *DeleteResponseBody {
|
||||
if r != nil {
|
||||
return r.body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue