2021-11-18 13:32:09 +00:00
|
|
|
package subnet
|
|
|
|
|
|
|
|
import (
|
|
|
|
refs "github.com/nspcc-dev/neofs-api-go/v2/refs/grpc"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|