[#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

@ -18,6 +18,8 @@ type PutArgs struct {
token []byte // binary session token
name, zone string // native name and zone
client.InvokePrmOptional
}
// SetPublicKey sets the public key of container owner
@ -69,6 +71,7 @@ func (c *Client) Put(args PutArgs) error {
}
prm.SetMethod(method)
prm.InvokePrmOptional = args.InvokePrmOptional
err := c.client.Invoke(prm)
if err != nil {