2020-09-15 08:01:48 +00:00
|
|
|
package netmap
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fixme: make types instead of aliases to v2 structures
|
|
|
|
type PlacementPolicy = netmap.PlacementPolicy
|
2020-11-02 15:17:15 +00:00
|
|
|
|
|
|
|
func PlacementPolicyToJSON(p *PlacementPolicy) ([]byte, error) {
|
|
|
|
return netmap.PlacementPolicyToJSON(p)
|
|
|
|
}
|
|
|
|
|
|
|
|
func PlacementPolicyFromJSON(data []byte) (*PlacementPolicy, error) {
|
|
|
|
return netmap.PlacementPolicyFromJSON(data)
|
|
|
|
}
|