2021-01-29 03:04:36 +03:00
|
|
|
package placementrouter
|
|
|
|
|
|
|
|
import (
|
2021-11-10 10:08:33 +03:00
|
|
|
cid "github.com/nspcc-dev/neofs-sdk-go/container/id"
|
|
|
|
"github.com/nspcc-dev/neofs-sdk-go/netmap"
|
2021-01-29 03:04:36 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
// PlacementBuilder describes interface of NeoFS placement calculator.
|
|
|
|
type PlacementBuilder interface {
|
|
|
|
// BuildPlacement must compose and sort (according to a specific algorithm)
|
|
|
|
// storage nodes from the container with identifier cid using network map
|
|
|
|
// of particular epoch.
|
2021-05-31 14:03:17 +03:00
|
|
|
BuildPlacement(epoch uint64, cid *cid.ID) ([]netmap.Nodes, error)
|
2021-01-29 03:04:36 +03:00
|
|
|
}
|