forked from TrueCloudLab/frostfs-node
[#525] morph/container: Pass session token to Delete call
Pass session token (byte array) argument to `Delete` method call of `Container` contract. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cfa209d74e
commit
edfdc4274a
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,8 @@ type DeleteArgs struct {
|
||||||
cid []byte // container identifier
|
cid []byte // container identifier
|
||||||
|
|
||||||
sig []byte // container identifier signature
|
sig []byte // container identifier signature
|
||||||
|
|
||||||
|
token []byte // binary session token
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetCID sets the container identifier
|
// SetCID sets the container identifier
|
||||||
|
@ -31,6 +33,7 @@ func (c *Client) Delete(args DeleteArgs) error {
|
||||||
c.deleteMethod,
|
c.deleteMethod,
|
||||||
args.cid,
|
args.cid,
|
||||||
args.sig,
|
args.sig,
|
||||||
|
args.token,
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue