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>
18 lines
394 B
Go
18 lines
394 B
Go
package tombstonetest
|
|
|
|
import (
|
|
refstest "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/refs/test"
|
|
"git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/tombstone"
|
|
)
|
|
|
|
func GenerateTombstone(empty bool) *tombstone.Tombstone {
|
|
m := new(tombstone.Tombstone)
|
|
|
|
if !empty {
|
|
m.SetExpirationEpoch(89)
|
|
m.SetSplitID([]byte{3, 2, 1})
|
|
m.SetMembers(refstest.GenerateObjectIDs(false))
|
|
}
|
|
|
|
return m
|
|
}
|