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
|
@ -16,6 +16,8 @@ type SetEACLArgs struct {
|
|||
pubkey []byte // binary public key
|
||||
|
||||
token []byte // binary session token
|
||||
|
||||
client.InvokePrmOptional
|
||||
}
|
||||
|
||||
// SetEACL sets the extended ACL table
|
||||
|
@ -50,6 +52,7 @@ func (c *Client) SetEACL(args SetEACLArgs) error {
|
|||
|
||||
prm.SetMethod(c.setEACLMethod)
|
||||
prm.SetArgs(args.eacl, args.sig, args.pubkey, args.token)
|
||||
prm.InvokePrmOptional = args.InvokePrmOptional
|
||||
|
||||
err := c.client.Invoke(prm)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue