forked from TrueCloudLab/frostfs-node
[#57] services/object: Add session token to common parameters
Add session token field to CommonPrm. Remove session token field from Put parameters. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
39c17253be
commit
2da323c4b9
3 changed files with 25 additions and 14 deletions
|
@ -1,7 +1,6 @@
|
|||
package putsvc
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/pkg/token"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object/util"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object_manager/placement"
|
||||
|
@ -12,8 +11,6 @@ type PutInitPrm struct {
|
|||
|
||||
hdr *object.RawObject
|
||||
|
||||
token *token.SessionToken
|
||||
|
||||
traverseOpts []placement.Option
|
||||
}
|
||||
|
||||
|
@ -37,14 +34,6 @@ func (p *PutInitPrm) WithObject(v *object.RawObject) *PutInitPrm {
|
|||
return p
|
||||
}
|
||||
|
||||
func (p *PutInitPrm) WithSession(v *token.SessionToken) *PutInitPrm {
|
||||
if p != nil {
|
||||
p.token = v
|
||||
}
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
func (p *PutChunkPrm) WithChunk(v []byte) *PutChunkPrm {
|
||||
if p != nil {
|
||||
p.chunk = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue