forked from TrueCloudLab/frostfs-api-go
732dd51b1b
I knew one day `sed` would save me an hour of manual work: ``` sed -i -n -e ' s/) Set/) Set/ p t setter b end :setter n s/nil/nil/ t hasif p b end :hasif n :loop p n s/}/}/ t end b loop :end ' $@ goimports -w $@ ``` Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
15 lines
347 B
Go
15 lines
347 B
Go
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) {
|
|
x.Id = id
|
|
}
|
|
|
|
// SetOwner sets subnet owner's ID in NeoFS system.
|
|
func (x *SubnetInfo) SetOwner(id *refs.OwnerID) {
|
|
x.Owner = id
|
|
}
|