forked from TrueCloudLab/frostfs-node
[#1101] *: Adopt interface changes of API client from SDK library
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
674f520da7
commit
4f3323f084
14 changed files with 94 additions and 246 deletions
|
@ -1,13 +1,11 @@
|
|||
package internal
|
||||
|
||||
import (
|
||||
"crypto/ecdsa"
|
||||
"io"
|
||||
|
||||
"github.com/nspcc-dev/neofs-sdk-go/client"
|
||||
cid "github.com/nspcc-dev/neofs-sdk-go/container/id"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/owner"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/session"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/token"
|
||||
)
|
||||
|
@ -16,8 +14,6 @@ import (
|
|||
|
||||
type commonPrm struct {
|
||||
cli *client.Client
|
||||
|
||||
privKey *ecdsa.PrivateKey
|
||||
}
|
||||
|
||||
// SetClient sets base client for NeoFS API communication.
|
||||
|
@ -25,20 +21,6 @@ func (x *commonPrm) SetClient(cli *client.Client) {
|
|||
x.cli = cli
|
||||
}
|
||||
|
||||
// SetKey sets private key to sign the request(s).
|
||||
func (x *commonPrm) SetKey(key *ecdsa.PrivateKey) {
|
||||
x.privKey = key
|
||||
}
|
||||
|
||||
type ownerIDPrm struct {
|
||||
ownerID *owner.ID
|
||||
}
|
||||
|
||||
// SetOwner sets identifier of NeoFS user.
|
||||
func (x *ownerIDPrm) SetOwner(id *owner.ID) {
|
||||
x.ownerID = id
|
||||
}
|
||||
|
||||
type containerIDPrm struct {
|
||||
cnrID *cid.ID
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue