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,7 +4,7 @@ import (
"bytes"
"sync"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
)
type (

View file

@ -3,8 +3,8 @@ package netmap
import (
"testing"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/stretchr/testify/require"
)

View file

@ -3,10 +3,10 @@ package netmap
import (
"encoding/hex"
timerEvent "github.com/nspcc-dev/neofs-node/pkg/innerring/timers"
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
netmapEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/netmap"
subnetevents "github.com/nspcc-dev/neofs-node/pkg/morph/event/subnet"
timerEvent "github.com/TrueCloudLab/frostfs-node/pkg/innerring/timers"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
netmapEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/netmap"
subnetevents "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/subnet"
"go.uber.org/zap"
)

View file

@ -4,8 +4,8 @@ import (
"errors"
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/util/locode"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/util/locode"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
)
var errMissingRequiredAttr = errors.New("missing required attribute in DB record")

View file

@ -5,10 +5,10 @@ import (
"fmt"
"testing"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap/nodevalidation/locode"
locodestd "github.com/nspcc-dev/neofs-node/pkg/util/locode"
locodedb "github.com/nspcc-dev/neofs-node/pkg/util/locode/db"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation/locode"
locodestd "github.com/TrueCloudLab/frostfs-node/pkg/util/locode"
locodedb "github.com/TrueCloudLab/frostfs-node/pkg/util/locode/db"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
"github.com/stretchr/testify/require"
)

View file

@ -1,8 +1,8 @@
package locode
import (
"github.com/nspcc-dev/neofs-node/pkg/util/locode"
locodedb "github.com/nspcc-dev/neofs-node/pkg/util/locode/db"
"github.com/TrueCloudLab/frostfs-node/pkg/util/locode"
locodedb "github.com/TrueCloudLab/frostfs-node/pkg/util/locode/db"
)
// Record is an interface of read-only

View file

@ -3,8 +3,8 @@ package maddress
import (
"fmt"
"github.com/nspcc-dev/neofs-node/pkg/network"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/network"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
)
// VerifyAndUpdate calls network.VerifyAddress.

View file

@ -9,7 +9,7 @@ package state
import (
"errors"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
)
// ErrMaintenanceModeDisallowed is returned when maintenance mode is disallowed.
@ -33,7 +33,7 @@ type NetworkSettings interface {
// and currently doesn't require any additional initialization.
//
// NetMapCandidateValidator implements
// github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap.NodeValidator.
// github.com/nspcc-dev/frostfs-node/pkg/innerring/processors/netmap.NodeValidator.
type NetMapCandidateValidator struct {
netSettings NetworkSettings
}

View file

@ -3,8 +3,8 @@ package state_test
import (
"testing"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap/nodevalidation/state"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation/state"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
"github.com/stretchr/testify/require"
)

View file

@ -3,9 +3,9 @@ package subnet
import (
"fmt"
morphsubnet "github.com/nspcc-dev/neofs-node/pkg/morph/client/subnet"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
subnetid "github.com/nspcc-dev/neofs-sdk-go/subnet/id"
morphsubnet "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/subnet"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
subnetid "github.com/TrueCloudLab/frostfs-sdk-go/subnet/id"
)
// VerifyAndUpdate calls subnet contract's `NodeAllowed` method.

View file

@ -3,7 +3,7 @@ package subnet
import (
"errors"
morphsubnet "github.com/nspcc-dev/neofs-node/pkg/morph/client/subnet"
morphsubnet "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/subnet"
)
// Validator is an utility that verifies node subnet

View file

@ -1,8 +1,8 @@
package nodevalidation
import (
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap"
apinetmap "github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap"
apinetmap "github.com/TrueCloudLab/frostfs-sdk-go/netmap"
)
// CompositeValidator wraps `netmap.NodeValidator`s.

View file

@ -1,9 +1,9 @@
package netmap
import (
v2netmap "github.com/TrueCloudLab/frostfs-api-go/v2/netmap"
netmapclient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
v2netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap"
netmapclient "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
"go.uber.org/zap"
)
@ -27,7 +27,7 @@ func (np *Processor) processNetmapCleanupTick(ev netmapCleanupTick) {
// In notary environments we call UpdateStateIR method instead of UpdateState.
// It differs from UpdateState only by name, so we can do this in the same form.
// See https://github.com/nspcc-dev/neofs-contract/issues/225
// See https://github.com/nspcc-dev/frostfs-contract/issues/225
const methodUpdateStateNotary = "updateStateIR"
if np.notaryDisabled {

View file

@ -1,11 +1,11 @@
package netmap
import (
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/audit"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/governance"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/settlement"
cntClient "github.com/nspcc-dev/neofs-node/pkg/morph/client/container"
netmapEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/audit"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/governance"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/settlement"
cntClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/container"
netmapEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/netmap"
"go.uber.org/zap"
)

View file

@ -4,11 +4,11 @@ import (
"bytes"
"encoding/hex"
netmapclient "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
netmapEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/netmap"
subnetEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/subnet"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
subnetid "github.com/nspcc-dev/neofs-sdk-go/subnet/id"
netmapclient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
netmapEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/netmap"
subnetEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/subnet"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
subnetid "github.com/TrueCloudLab/frostfs-sdk-go/subnet/id"
"go.uber.org/zap"
)
@ -70,7 +70,7 @@ func (np *Processor) processAddPeer(ev netmapEvent.AddPeer) {
// In notary environments we call AddPeerIR method instead of AddPeer.
// It differs from AddPeer only by name, so we can do this in the same form.
// See https://github.com/nspcc-dev/neofs-contract/issues/154.
// See https://github.com/nspcc-dev/frostfs-contract/issues/154.
const methodAddPeerNotary = "addPeerIR"
if nr := ev.NotaryRequest(); nr != nil {

View file

@ -4,16 +4,16 @@ import (
"errors"
"fmt"
"github.com/TrueCloudLab/frostfs-node/pkg/innerring/processors/netmap/nodevalidation/state"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/client/container"
nmClient "github.com/TrueCloudLab/frostfs-node/pkg/morph/client/netmap"
"github.com/TrueCloudLab/frostfs-node/pkg/morph/event"
netmapEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/netmap"
subnetEvent "github.com/TrueCloudLab/frostfs-node/pkg/morph/event/subnet"
"github.com/TrueCloudLab/frostfs-node/pkg/util/logger"
"github.com/TrueCloudLab/frostfs-sdk-go/netmap"
"github.com/nspcc-dev/neo-go/pkg/core/mempoolevent"
"github.com/nspcc-dev/neo-go/pkg/util"
"github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap/nodevalidation/state"
"github.com/nspcc-dev/neofs-node/pkg/morph/client/container"
nmClient "github.com/nspcc-dev/neofs-node/pkg/morph/client/netmap"
"github.com/nspcc-dev/neofs-node/pkg/morph/event"
netmapEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/netmap"
subnetEvent "github.com/nspcc-dev/neofs-node/pkg/morph/event/subnet"
"github.com/nspcc-dev/neofs-node/pkg/util/logger"
"github.com/nspcc-dev/neofs-sdk-go/netmap"
"github.com/panjf2000/ants/v2"
"go.uber.org/zap"
)