forked from TrueCloudLab/frostfs-api-go
6d8612fd51
Replace alias to v2 type Operation with v2-compatible implementation. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
20 lines
522 B
Go
20 lines
522 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 Selector = netmap.Selector
|
|
type Filter = netmap.Filter
|
|
type Replica = netmap.Replica
|
|
type Clause = netmap.Clause
|
|
|
|
func PlacementPolicyToJSON(p *PlacementPolicy) ([]byte, error) {
|
|
return netmap.PlacementPolicyToJSON(p)
|
|
}
|
|
|
|
func PlacementPolicyFromJSON(data []byte) (*PlacementPolicy, error) {
|
|
return netmap.PlacementPolicyFromJSON(data)
|
|
}
|