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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue