forked from TrueCloudLab/frostfs-node
[#1214] *: Use single Object
type in whole project
Remove `Object` and `RawObject` types from `pkg/core/object` package. Use `Object` type from NeoFS SDK Go library everywhere. Avoid using the deprecated elements. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
19ad349b27
commit
7ccd1625af
100 changed files with 847 additions and 965 deletions
|
@ -2,15 +2,15 @@ package putsvc
|
|||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-node/pkg/core/client"
|
||||
"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"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
)
|
||||
|
||||
type PutInitPrm struct {
|
||||
common *util.CommonPrm
|
||||
|
||||
hdr *object.RawObject
|
||||
hdr *object.Object
|
||||
|
||||
traverseOpts []placement.Option
|
||||
|
||||
|
@ -37,7 +37,7 @@ func (p *PutInitPrm) WithTraverseOption(opt placement.Option) *PutInitPrm {
|
|||
return p
|
||||
}
|
||||
|
||||
func (p *PutInitPrm) WithObject(v *object.RawObject) *PutInitPrm {
|
||||
func (p *PutInitPrm) WithObject(v *object.Object) *PutInitPrm {
|
||||
if p != nil {
|
||||
p.hdr = v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue