forked from TrueCloudLab/frostfs-node
[#7] Fix container service according to APIv2 contracts
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
2ab855b2ec
commit
da92f2944f
4 changed files with 11 additions and 38 deletions
|
@ -7,17 +7,9 @@ import "github.com/pkg/errors"
|
|||
type DeleteArgs struct {
|
||||
cid []byte // container identifier
|
||||
|
||||
ownerID []byte // container owner identifier
|
||||
|
||||
sig []byte // container identifier signature
|
||||
}
|
||||
|
||||
// SetOwnerID sets the container owner identifier
|
||||
// in a binary format.
|
||||
func (p *DeleteArgs) SetOwnerID(v []byte) {
|
||||
p.ownerID = v
|
||||
}
|
||||
|
||||
// SetCID sets the container identifier
|
||||
// in a binary format.
|
||||
func (p *DeleteArgs) SetCID(v []byte) {
|
||||
|
@ -36,7 +28,6 @@ func (c *Client) Delete(args DeleteArgs) error {
|
|||
return errors.Wrapf(c.client.Invoke(
|
||||
c.deleteMethod,
|
||||
args.cid,
|
||||
args.ownerID,
|
||||
args.sig,
|
||||
), "could not invoke method (%s)", c.deleteMethod)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue