forked from TrueCloudLab/frostfs-node
[#1454] Upgrade NeoFS SDK Go module with new IDs
Core changes: * avoid package-colliding variable naming * avoid using pointers to IDs where unnecessary * avoid using `idSDK` import alias pattern * use `EncodeToString` for protocol string calculation and `String` for printing Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cc6209e8a0
commit
1c30414a6c
218 changed files with 2095 additions and 2521 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
searchsvc "github.com/nspcc-dev/neofs-node/pkg/services/object/search"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
oidSDK "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
||||
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/user"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -30,7 +30,7 @@ type NetworkInfo interface {
|
|||
|
||||
// Returns user ID of the local storage node. Result must not be nil.
|
||||
// New tombstone objects will have the result as an owner ID if removal is executed w/o a session.
|
||||
LocalNodeID() *user.ID
|
||||
LocalNodeID() user.ID
|
||||
}
|
||||
|
||||
type cfg struct {
|
||||
|
@ -40,18 +40,18 @@ type cfg struct {
|
|||
// must return (nil, nil) for PHY objects
|
||||
splitInfo(*execCtx) (*object.SplitInfo, error)
|
||||
|
||||
children(*execCtx) ([]oidSDK.ID, error)
|
||||
children(*execCtx) ([]oid.ID, error)
|
||||
|
||||
// must return (nil, nil) for 1st object in chain
|
||||
previous(*execCtx, *oidSDK.ID) (*oidSDK.ID, error)
|
||||
previous(*execCtx, oid.ID) (*oid.ID, error)
|
||||
}
|
||||
|
||||
searcher interface {
|
||||
splitMembers(*execCtx) ([]oidSDK.ID, error)
|
||||
splitMembers(*execCtx) ([]oid.ID, error)
|
||||
}
|
||||
|
||||
placer interface {
|
||||
put(*execCtx) (*oidSDK.ID, error)
|
||||
put(*execCtx) (*oid.ID, error)
|
||||
}
|
||||
|
||||
netInfo NetworkInfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue