forked from TrueCloudLab/frostfs-api-go
[#362] netmap: Add marshaling of the subnetID field of container policy
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
d93828f465
commit
3604d96f3f
4 changed files with 33 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue