Move to frostfs-node

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2022-12-23 20:35:35 +03:00 committed by Stanislav Bogatyrev
parent 42554a9298
commit 923f84722a
934 changed files with 3470 additions and 3451 deletions

View file

@ -4,8 +4,8 @@ import (
"context"
"io"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
// Context wraps stdlib context

View file

@ -3,11 +3,11 @@ package common
import (
"fmt"
"github.com/nspcc-dev/hrw"
netmapcore "github.com/nspcc-dev/neofs-node/pkg/core/netmap"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
apiNetmap "github.com/nspcc-dev/neofs-sdk-go/netmap"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
netmapcore "github.com/TrueCloudLab/frostfs-node/pkg/core/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
apiNetmap "github.com/TrueCloudLab/frostfs-sdk-go/netmap"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
"github.com/TrueCloudLab/hrw"
"go.uber.org/zap"
)

View file

@ -4,8 +4,8 @@ import (
"encoding/hex"
"sync"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"go.uber.org/zap"
)

View file

@ -1,8 +1,8 @@
package router
import (
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
)
// Builder groups methods to route values in the network.

View file

@ -1,7 +1,7 @@
package router
import (
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"go.uber.org/zap"
)

View file

@ -3,8 +3,8 @@ package router
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
)
// Prm groups the required parameters of the Router's constructor.

View file

@ -4,8 +4,8 @@ import (
"bytes"
"errors"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
)
var errWrongRoute = errors.New("wrong route")

View file

@ -3,9 +3,9 @@ package eigentrustcalc
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/nspcc-dev/neofs-node/pkg/util"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/util"
)
// Prm groups the required parameters of the Calculator's constructor.

View file

@ -3,9 +3,9 @@ package eigentrustcalc
import (
"context"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
"go.uber.org/zap"
)

View file

@ -3,9 +3,9 @@ package eigentrustcalc
import (
"context"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
type Context interface {

View file

@ -1,7 +1,7 @@
package eigentrustcalc
import (
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"go.uber.org/zap"
)

View file

@ -3,7 +3,7 @@ package eigentrustctrl
import (
"context"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust"
"go.uber.org/zap"
)

View file

@ -4,7 +4,7 @@ import (
"fmt"
"sync"
"github.com/nspcc-dev/neofs-node/pkg/util"
"github.com/TrueCloudLab/frostfs-node/pkg/util"
)
// Prm groups the required parameters of the Controller's constructor.

View file

@ -1,7 +1,7 @@
package eigentrustctrl
import (
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"go.uber.org/zap"
)

View file

@ -3,7 +3,7 @@ package eigentrust
import (
"context"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
)
type EpochIteration struct {

View file

@ -3,8 +3,8 @@ package routes
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
)
// Prm groups the required parameters of the Builder's constructor.

View file

@ -3,8 +3,8 @@ package routes
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"go.uber.org/zap"
)

View file

@ -4,10 +4,10 @@ import (
"fmt"
"sync"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust"
eigentrustcalc "github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust/calculator"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust"
eigentrustcalc "github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust/calculator"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
// Put saves intermediate trust of the consumer to daughter peer.

View file

@ -4,9 +4,9 @@ import (
"fmt"
"sync"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
eigentrustcalc "github.com/nspcc-dev/neofs-node/pkg/services/reputation/eigentrust/calculator"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
eigentrustcalc "github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/eigentrust/calculator"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
// Put saves daughter peer's trust to its provider for the epoch.

View file

@ -4,9 +4,9 @@ import (
"context"
"errors"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"go.uber.org/zap"
)

View file

@ -5,7 +5,7 @@ import (
"fmt"
"sync"
reputationcommon "github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
reputationcommon "github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
)
// Prm groups the required parameters of the Controller's constructor.

View file

@ -1,8 +1,8 @@
package trustcontroller
import (
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
)
// Iterator is a group of methods provided by entity

View file

@ -1,7 +1,7 @@
package trustcontroller
import (
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"go.uber.org/zap"
)

View file

@ -1,6 +1,6 @@
package trustcontroller
import "github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
import "github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
type storageWrapper struct {
w common.Writer

View file

@ -3,8 +3,8 @@ package routes
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
)
// Prm groups the required parameters of the Builder's constructor.

View file

@ -3,8 +3,8 @@ package routes
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation/common"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation/common"
"go.uber.org/zap"
)

View file

@ -4,8 +4,8 @@ import (
"errors"
"sync"
"github.com/nspcc-dev/neofs-node/pkg/services/reputation"
apireputation "github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/reputation"
apireputation "github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
// UpdatePrm groups the parameters of Storage's Update operation.

View file

@ -3,9 +3,9 @@ package reputationrpc
import (
"context"
"github.com/nspcc-dev/neofs-api-go/v2/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/util"
"github.com/nspcc-dev/neofs-node/pkg/services/util/response"
"github.com/TrueCloudLab/frostfs-api-go/v2/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/util"
"github.com/TrueCloudLab/frostfs-node/pkg/services/util/response"
)
type responseService struct {

View file

@ -3,7 +3,7 @@ package reputationrpc
import (
"context"
"github.com/nspcc-dev/neofs-api-go/v2/reputation"
"github.com/TrueCloudLab/frostfs-api-go/v2/reputation"
)
// Server is an interface of the NeoFS API v2 Reputation service server.

View file

@ -4,8 +4,8 @@ import (
"context"
"crypto/ecdsa"
"github.com/nspcc-dev/neofs-api-go/v2/reputation"
"github.com/nspcc-dev/neofs-node/pkg/services/util"
"github.com/TrueCloudLab/frostfs-api-go/v2/reputation"
"github.com/TrueCloudLab/frostfs-node/pkg/services/util"
)
type signService struct {

View file

@ -3,7 +3,7 @@ package reputation
import (
"strconv"
"github.com/nspcc-dev/neofs-sdk-go/reputation"
"github.com/TrueCloudLab/frostfs-sdk-go/reputation"
)
// TrustValue represents the numeric value of the node's trust.