frostfs-api-go/pkg/netmap/policy.go
Leonard Lyubich eb96fffa5c [#189] sdk/netmap: Refactor Selector type
Replace alias to v2 type Selector with v2-compatible implementation.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-11-06 09:28:50 +03:00

17 lines
434 B
Go

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
type Replica = netmap.Replica
func PlacementPolicyToJSON(p *PlacementPolicy) ([]byte, error) {
return netmap.PlacementPolicyToJSON(p)
}
func PlacementPolicyFromJSON(data []byte) (*PlacementPolicy, error) {
return netmap.PlacementPolicyFromJSON(data)
}