forked from TrueCloudLab/frostfs-sdk-go
e8eac3997c
This is done to prevent import cycles when `object` package needs any other that requires `object.ID` or `object.Address`. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
20 lines
554 B
Go
20 lines
554 B
Go
package storagegrouptest
|
|
|
|
import (
|
|
checksumtest "github.com/nspcc-dev/neofs-sdk-go/checksum/test"
|
|
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
|
"github.com/nspcc-dev/neofs-sdk-go/object/id/test"
|
|
"github.com/nspcc-dev/neofs-sdk-go/storagegroup"
|
|
)
|
|
|
|
// StorageGroup returns random storagegroup.StorageGroup.
|
|
func StorageGroup() *storagegroup.StorageGroup {
|
|
x := storagegroup.New()
|
|
|
|
x.SetExpirationEpoch(66)
|
|
x.SetValidationDataSize(322)
|
|
x.SetValidationDataHash(checksumtest.Checksum())
|
|
x.SetMembers([]*oid.ID{test.ID(), test.ID()})
|
|
|
|
return x
|
|
}
|