From ddd3ba1bf2ffd015d6b04245d776baea0e45db18 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 17 Aug 2020 14:48:08 +0300 Subject: [PATCH] v2/netmap: Define uni PlacementPolicy type Signed-off-by: Leonard Lyubich --- v2/netmap/convert.go | 23 +++++++++++++++++++++++ v2/netmap/types.go | 5 +++++ 2 files changed, 28 insertions(+) create mode 100644 v2/netmap/convert.go create mode 100644 v2/netmap/types.go diff --git a/v2/netmap/convert.go b/v2/netmap/convert.go new file mode 100644 index 0000000..5d126f8 --- /dev/null +++ b/v2/netmap/convert.go @@ -0,0 +1,23 @@ +package netmap + +import ( + netmap "github.com/nspcc-dev/neofs-api-go/v2/netmap/grpc" +) + +func PlacementPolicyToGRPCMessage(p *PlacementPolicy) *netmap.PlacementPolicy { + if p == nil { + return nil + } + + // TODO: fill me + return nil +} + +func PlacementPolicyFromGRPCMessage(m *netmap.PlacementPolicy) *PlacementPolicy { + if m == nil { + return nil + } + + // TODO: fill me + return nil +} diff --git a/v2/netmap/types.go b/v2/netmap/types.go new file mode 100644 index 0000000..0f295c6 --- /dev/null +++ b/v2/netmap/types.go @@ -0,0 +1,5 @@ +package netmap + +type PlacementPolicy struct { + // TODO: fill me +}