2021-01-29 00:04:36 +00:00
|
|
|
package placementrouter
|
|
|
|
|
|
|
|
import (
|
2021-05-31 11:03:17 +00:00
|
|
|
cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
|
2021-01-29 00:04:36 +00:00
|
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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 11:03:17 +00:00
|
|
|
BuildPlacement(epoch uint64, cid *cid.ID) ([]netmap.Nodes, error)
|
2021-01-29 00:04:36 +00:00
|
|
|
}
|