[#362] netmap: Add marshaling of the subnetID field of container policy

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-12-01 16:42:31 +03:00 committed by LeL
parent d93828f465
commit 3604d96f3f
4 changed files with 33 additions and 0 deletions

View file

@ -1,5 +1,7 @@
package netmap
import refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
// SetReplicas of placement policy.
func (m *PlacementPolicy) SetReplicas(v []*Replica) {
if m != nil {
@ -28,6 +30,13 @@ func (m *PlacementPolicy) SetFilters(v []*Filter) {
}
}
// SetSubnetID sets ID of subnet.
func (m *PlacementPolicy) SetSubnetID(v *refs.SubnetID) {
if m != nil {
m.SubnetId = v
}
}
// SetName of placement filter.
func (m *Filter) SetName(v string) {
if m != nil {