forked from TrueCloudLab/frostfs-node
[#971] morph/container: Add optional parameters
Add optional parameters to the client call signature. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
822d73fb02
commit
af33dd65b2
8 changed files with 214 additions and 30 deletions
|
@ -14,6 +14,8 @@ type DeleteArgs struct {
|
|||
sig []byte // container identifier signature
|
||||
|
||||
token []byte // binary session token
|
||||
|
||||
client.InvokePrmOptional
|
||||
}
|
||||
|
||||
// SetCID sets the container identifier
|
||||
|
@ -42,6 +44,7 @@ func (c *Client) Delete(args DeleteArgs) error {
|
|||
|
||||
prm.SetMethod(c.deleteMethod)
|
||||
prm.SetArgs(args.cid, args.sig, args.token)
|
||||
prm.InvokePrmOptional = args.InvokePrmOptional
|
||||
|
||||
err := c.client.Invoke(prm)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue