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