[#100] types: Make sdk types as protobuf wrappers
Signed-off-by: Airat Arifullin a.arifullin@yadro.com
This commit is contained in:
parent
d70ef2187b
commit
6281a25556
135 changed files with 2870 additions and 2190 deletions
|
@ -3,7 +3,7 @@ package object_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
v2object "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object"
|
||||
v2object "git.frostfs.info/TrueCloudLab/frostfs-api-go/v2/object/grpc"
|
||||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
@ -11,19 +11,19 @@ import (
|
|||
func TestType_ToV2(t *testing.T) {
|
||||
typs := []struct {
|
||||
t object.Type
|
||||
t2 v2object.Type
|
||||
t2 v2object.ObjectType
|
||||
}{
|
||||
{
|
||||
t: object.TypeRegular,
|
||||
t2: v2object.TypeRegular,
|
||||
t2: v2object.ObjectType_REGULAR,
|
||||
},
|
||||
{
|
||||
t: object.TypeTombstone,
|
||||
t2: v2object.TypeTombstone,
|
||||
t2: v2object.ObjectType_TOMBSTONE,
|
||||
},
|
||||
{
|
||||
t: object.TypeLock,
|
||||
t2: v2object.TypeLock,
|
||||
t2: v2object.ObjectType_LOCK,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue