forked from TrueCloudLab/frostfs-api-go
[#355] v2/refs: add subnetwork ID
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
ad6a7999cd
commit
68f28a1918
2 changed files with 26 additions and 0 deletions
|
@ -59,6 +59,7 @@ type PlacementPolicy struct {
|
|||
backupFactor uint32
|
||||
selectors []*Selector
|
||||
filters []*Filter
|
||||
subnetID *refs.SubnetID
|
||||
}
|
||||
|
||||
// Attribute of storage node.
|
||||
|
@ -330,6 +331,14 @@ func (p *PlacementPolicy) SetReplicas(replicas []*Replica) {
|
|||
p.replicas = replicas
|
||||
}
|
||||
|
||||
func (p *PlacementPolicy) GetSubnetID() *refs.SubnetID {
|
||||
return p.subnetID
|
||||
}
|
||||
|
||||
func (p *PlacementPolicy) SetSubnetID(id *refs.SubnetID) {
|
||||
p.subnetID = id
|
||||
}
|
||||
|
||||
func (a *Attribute) GetKey() string {
|
||||
if a != nil {
|
||||
return a.key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue