[#128] object: Move ID and Address in subpkg

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>
This commit is contained in:
Pavel Karpy 2022-01-25 19:20:32 +03:00 committed by Alex Vanin
parent 03560b84af
commit e8eac3997c
27 changed files with 200 additions and 158 deletions

View file

@ -6,6 +6,7 @@ import (
objv2 "github.com/nspcc-dev/neofs-api-go/v2/object"
"github.com/nspcc-dev/neofs-sdk-go/object"
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
"github.com/stretchr/testify/require"
)
@ -43,11 +44,11 @@ func TestSplitInfo(t *testing.T) {
})
}
func generateID() *object.ID {
func generateID() *oid.ID {
var buf [32]byte
_, _ = rand.Read(buf[:])
id := object.NewID()
id := oid.NewID()
id.SetSHA256(buf)
return id