forked from TrueCloudLab/frostfs-node
[#1214] *: Use single Object
type in whole project
Remove `Object` and `RawObject` types from `pkg/core/object` package. Use `Object` type from NeoFS SDK Go library everywhere. Avoid using the deprecated elements. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
19ad349b27
commit
7ccd1625af
100 changed files with 847 additions and 965 deletions
|
@ -25,19 +25,19 @@ func testShardInhume(t *testing.T, hasWriteCache bool) {
|
|||
|
||||
cid := cidtest.ID()
|
||||
|
||||
obj := generateRawObjectWithCID(t, cid)
|
||||
obj := generateObjectWithCID(t, cid)
|
||||
addAttribute(obj, "foo", "bar")
|
||||
|
||||
ts := generateRawObjectWithCID(t, cid)
|
||||
ts := generateObjectWithCID(t, cid)
|
||||
|
||||
putPrm := new(shard.PutPrm)
|
||||
putPrm.WithObject(obj.Object())
|
||||
putPrm.WithObject(obj)
|
||||
|
||||
inhPrm := new(shard.InhumePrm)
|
||||
inhPrm.WithTarget(ts.Object().Address(), obj.Object().Address())
|
||||
inhPrm.WithTarget(object.AddressOf(ts), object.AddressOf(obj))
|
||||
|
||||
getPrm := new(shard.GetPrm)
|
||||
getPrm.WithAddress(obj.Object().Address())
|
||||
getPrm.WithAddress(object.AddressOf(obj))
|
||||
|
||||
_, err := sh.Put(putPrm)
|
||||
require.NoError(t, err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue