2021-11-18 13:32:09 +00:00
|
|
|
package subnet
|
|
|
|
|
|
|
|
import (
|
2023-03-07 10:38:56 +00:00
|
|
|
refs "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/grpc"
|
2021-11-18 13:32:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SetID returns identifier of the subnet. Nil arg is equivalent to zero subnet ID.
|
|
|
|
func (x *SubnetInfo) SetID(id *refs.SubnetID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Id = id
|
2021-11-18 13:32:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// SetOwner sets subnet owner's ID in NeoFS system.
|
|
|
|
func (x *SubnetInfo) SetOwner(id *refs.OwnerID) {
|
2022-03-23 11:42:57 +00:00
|
|
|
x.Owner = id
|
2021-11-18 13:32:09 +00:00
|
|
|
}
|