forked from TrueCloudLab/frostfs-sdk-go
[#170] oid, cid: Refactor and document package functionality
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
24d6c2221f
commit
f7172adf18
49 changed files with 831 additions and 439 deletions
|
@ -57,7 +57,7 @@ func generate(withParent bool) *object.Object {
|
|||
x.SetCreationEpoch(222)
|
||||
x.SetPreviousID(oidtest.ID())
|
||||
x.SetParentID(oidtest.ID())
|
||||
x.SetChildren(*oidtest.ID(), *oidtest.ID())
|
||||
x.SetChildren(oidtest.ID(), oidtest.ID())
|
||||
x.SetAttributes(*Attribute(), *Attribute())
|
||||
x.SetSplitID(SplitID())
|
||||
x.SetPayloadChecksum(checksumtest.Checksum())
|
||||
|
@ -88,7 +88,7 @@ func Tombstone() *object.Tombstone {
|
|||
|
||||
x.SetSplitID(SplitID())
|
||||
x.SetExpirationEpoch(13)
|
||||
x.SetMembers([]oid.ID{*oidtest.ID(), *oidtest.ID()})
|
||||
x.SetMembers([]oid.ID{oidtest.ID(), oidtest.ID()})
|
||||
|
||||
return x
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ func SearchFilters() object.SearchFilters {
|
|||
// Lock returns random object.Lock.
|
||||
func Lock() *object.Lock {
|
||||
var l object.Lock
|
||||
l.WriteMembers([]oid.ID{*oidtest.ID(), *oidtest.ID()})
|
||||
l.WriteMembers([]oid.ID{oidtest.ID(), oidtest.ID()})
|
||||
|
||||
return &l
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue