[#43] cmd/neofs-node: Use object service in application

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-09-23 16:55:46 +03:00 committed by Alex Vanin
parent ea511d559c
commit 1914b4dbad
2 changed files with 155 additions and 16 deletions

View file

@ -11,6 +11,8 @@ import (
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
crypto "github.com/nspcc-dev/neofs-crypto"
"github.com/nspcc-dev/neofs-node/misc"
"github.com/nspcc-dev/neofs-node/pkg/core/container"
netmapCore "github.com/nspcc-dev/neofs-node/pkg/core/netmap"
"github.com/nspcc-dev/neofs-node/pkg/morph/client"
"github.com/nspcc-dev/neofs-node/pkg/network"
tokenStorage "github.com/nspcc-dev/neofs-node/pkg/services/session/storage"
@ -78,6 +80,8 @@ type cfg struct {
cfgNodeInfo cfgNodeInfo
localAddr *network.Address
cfgObject cfgObject
}
type cfgGRPC struct {
@ -115,6 +119,12 @@ type cfgNodeInfo struct {
attributes []*netmap.Attribute
}
type cfgObject struct {
netMapStorage netmapCore.Source
cnrStorage container.Source
}
const (
_ BootstrapType = iota
StorageNode