2020-07-10 14:17:51 +00:00
|
|
|
package node
|
|
|
|
|
|
|
|
import (
|
2020-07-24 13:54:03 +00:00
|
|
|
svc "github.com/nspcc-dev/neofs-node/cmd/neofs-node/modules/bootstrap"
|
|
|
|
eacl "github.com/nspcc-dev/neofs-node/pkg/core/container/acl/extended/storage"
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/core/container/storage"
|
|
|
|
container "github.com/nspcc-dev/neofs-node/pkg/network/transport/container/grpc"
|
2020-07-10 14:17:51 +00:00
|
|
|
"go.uber.org/dig"
|
|
|
|
"go.uber.org/zap"
|
|
|
|
)
|
|
|
|
|
|
|
|
type cnrParams struct {
|
|
|
|
dig.In
|
|
|
|
|
|
|
|
Logger *zap.Logger
|
|
|
|
|
|
|
|
Healthy svc.HealthyClient
|
|
|
|
|
2020-07-24 13:54:03 +00:00
|
|
|
ExtendedACLStore eacl.Storage
|
2020-07-10 14:17:51 +00:00
|
|
|
|
2020-07-24 13:54:03 +00:00
|
|
|
ContainerStorage storage.Storage
|
2020-07-10 14:17:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func newContainerService(p cnrParams) (container.Service, error) {
|
|
|
|
return container.New(container.Params{
|
|
|
|
Logger: p.Logger,
|
|
|
|
Healthy: p.Healthy,
|
|
|
|
Store: p.ContainerStorage,
|
|
|
|
ExtendedACLStore: p.ExtendedACLStore,
|
|
|
|
})
|
|
|
|
}
|