From 1cbfb337a700d7022a8d01b69d7db56c3cfb3f2a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 15 Sep 2020 11:01:48 +0300 Subject: [PATCH] [#142] sdk/netmap: Add type aliases for netmap policy Later on there should be version independent structures. Signed-off-by: Alex Vanin --- pkg/netmap/policy.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pkg/netmap/policy.go diff --git a/pkg/netmap/policy.go b/pkg/netmap/policy.go new file mode 100644 index 00000000..3a3e45a0 --- /dev/null +++ b/pkg/netmap/policy.go @@ -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