diff --git a/v2/netmap/convert.go b/v2/netmap/convert.go new file mode 100644 index 00000000..5d126f8b --- /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 00000000..0f295c6d --- /dev/null +++ b/v2/netmap/types.go @@ -0,0 +1,5 @@ +package netmap + +type PlacementPolicy struct { + // TODO: fill me +}