[#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:
Pavel Karpy 2021-11-12 18:14:55 +03:00 committed by Alex Vanin
parent 822d73fb02
commit af33dd65b2
8 changed files with 214 additions and 30 deletions

View file

@ -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)