forked from TrueCloudLab/frostfs-api-go
Alex Vanin
f69d2ad83c
Due to source code relocation from GitHub. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
17 lines
354 B
Go
17 lines
354 B
Go
package subnettest
|
|
|
|
import (
|
|
refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/subnet"
|
|
)
|
|
|
|
func GenerateSubnetInfo(empty bool) *subnet.Info {
|
|
m := new(subnet.Info)
|
|
|
|
if !empty {
|
|
m.SetID(refstest.GenerateSubnetID(false))
|
|
m.SetOwner(refstest.GenerateOwnerID(false))
|
|
}
|
|
|
|
return m
|
|
}
|