2021-11-18 13:32:09 +00:00
|
|
|
package subnet
|
|
|
|
|
|
|
|
import (
|
2022-12-09 11:16:24 +00:00
|
|
|
refs "github.com/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
|
|
|
}
|