[#142] sdk/netmap: Add type aliases for netmap policy

Later on there should be version independent structures.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-15 11:01:48 +03:00 committed by Stanislav Bogatyrev
parent 644a21edca
commit 1cbfb337a7

13
pkg/netmap/policy.go Normal file
View file

@ -0,0 +1,13 @@
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
type Operation = netmap.Operation