diff --git a/accounting/grpc/service.pb.go b/accounting/grpc/service.pb.go index 68485e4d..bdd0925f 100644 Binary files a/accounting/grpc/service.pb.go and b/accounting/grpc/service.pb.go differ diff --git a/accounting/grpc/service_grpc.pb.go b/accounting/grpc/service_grpc.pb.go index 44b24a87..7139614c 100644 Binary files a/accounting/grpc/service_grpc.pb.go and b/accounting/grpc/service_grpc.pb.go differ diff --git a/accounting/grpc/types.pb.go b/accounting/grpc/types.pb.go index 20286398..5a65e846 100644 Binary files a/accounting/grpc/types.pb.go and b/accounting/grpc/types.pb.go differ diff --git a/acl/grpc/types.pb.go b/acl/grpc/types.pb.go index 81216868..4af55200 100644 Binary files a/acl/grpc/types.pb.go and b/acl/grpc/types.pb.go differ diff --git a/audit/grpc/types.pb.go b/audit/grpc/types.pb.go index 82cb4c95..5353dd0c 100644 Binary files a/audit/grpc/types.pb.go and b/audit/grpc/types.pb.go differ diff --git a/container/grpc/service.pb.go b/container/grpc/service.pb.go index 031ac63e..251638ef 100644 Binary files a/container/grpc/service.pb.go and b/container/grpc/service.pb.go differ diff --git a/container/grpc/service_grpc.pb.go b/container/grpc/service_grpc.pb.go index 9f6af5bc..cbac3551 100644 Binary files a/container/grpc/service_grpc.pb.go and b/container/grpc/service_grpc.pb.go differ diff --git a/container/grpc/types.pb.go b/container/grpc/types.pb.go index 279c7818..10f30197 100644 Binary files a/container/grpc/types.pb.go and b/container/grpc/types.pb.go differ diff --git a/netmap/grpc/service.pb.go b/netmap/grpc/service.pb.go index c39ec43d..238265a9 100644 Binary files a/netmap/grpc/service.pb.go and b/netmap/grpc/service.pb.go differ diff --git a/netmap/grpc/service_grpc.pb.go b/netmap/grpc/service_grpc.pb.go index 45002276..babf2e78 100644 Binary files a/netmap/grpc/service_grpc.pb.go and b/netmap/grpc/service_grpc.pb.go differ diff --git a/netmap/grpc/types.pb.go b/netmap/grpc/types.pb.go index 60aa3ace..b26eef92 100644 Binary files a/netmap/grpc/types.pb.go and b/netmap/grpc/types.pb.go differ diff --git a/object/grpc/service.pb.go b/object/grpc/service.pb.go index 9c61501b..3e429245 100644 Binary files a/object/grpc/service.pb.go and b/object/grpc/service.pb.go differ diff --git a/object/grpc/service_grpc.pb.go b/object/grpc/service_grpc.pb.go index 2586c04e..4a2ea285 100644 Binary files a/object/grpc/service_grpc.pb.go and b/object/grpc/service_grpc.pb.go differ diff --git a/v2/object/grpc/status.pb.go b/object/grpc/status.pb.go similarity index 100% rename from v2/object/grpc/status.pb.go rename to object/grpc/status.pb.go diff --git a/object/grpc/types.pb.go b/object/grpc/types.pb.go index 6efc6dcc..efc92dcf 100644 Binary files a/object/grpc/types.pb.go and b/object/grpc/types.pb.go differ diff --git a/prepare.sh b/prepare.sh index c7cd6444..58993673 100755 --- a/prepare.sh +++ b/prepare.sh @@ -1,7 +1,5 @@ #!/bin/bash -prefix=v2 - if [ -z "$1" ]; then echo "usage: ./prepare.sh path/to/neofs-api" exit 1 @@ -9,23 +7,22 @@ fi API_GO_PATH=$(pwd) API_PATH=$1 -mkdir "$API_GO_PATH/$prefix" 2>/dev/null # MOVE FILES FROM API REPO cd "$API_PATH" || exit 1 ARGS=$(find ./ -name '*.proto' -not -path './vendor/*') for file in $ARGS; do dir=$(dirname "$file") - mkdir -p "$API_GO_PATH/$prefix/$dir/grpc" - cp -r "$dir"/* "$API_GO_PATH/$prefix/$dir/grpc" + mkdir -p "$API_GO_PATH/$dir/grpc" + cp -r "$dir"/* "$API_GO_PATH/$dir/grpc" done # MODIFY FILES -cd "$API_GO_PATH/$prefix" || exit 1 +cd "$API_GO_PATH" || exit 1 ARGS2=$(find ./ -name '*.proto') for file in $ARGS2; do echo "$file" - sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"$prefix\/\1\/grpc\/\2\.proto\";/" $file + sed -i "s/import\ \"\(.*\)\/\(.*\)\.proto\";/import\ \"\1\/grpc\/\2\.proto\";/" $file done cd "$API_GO_PATH" || exit 1 diff --git a/refs/grpc/types.pb.go b/refs/grpc/types.pb.go index 52b1a7eb..34c6186d 100644 Binary files a/refs/grpc/types.pb.go and b/refs/grpc/types.pb.go differ diff --git a/reputation/grpc/service.pb.go b/reputation/grpc/service.pb.go index 1ef79f4f..79104b5b 100644 Binary files a/reputation/grpc/service.pb.go and b/reputation/grpc/service.pb.go differ diff --git a/reputation/grpc/service_grpc.pb.go b/reputation/grpc/service_grpc.pb.go index 8713df75..b260785b 100644 Binary files a/reputation/grpc/service_grpc.pb.go and b/reputation/grpc/service_grpc.pb.go differ diff --git a/reputation/grpc/types.pb.go b/reputation/grpc/types.pb.go index 009df3ba..be5185e6 100644 Binary files a/reputation/grpc/types.pb.go and b/reputation/grpc/types.pb.go differ diff --git a/session/grpc/service.pb.go b/session/grpc/service.pb.go index 68511764..914f9afe 100644 Binary files a/session/grpc/service.pb.go and b/session/grpc/service.pb.go differ diff --git a/session/grpc/service_grpc.pb.go b/session/grpc/service_grpc.pb.go index a6bc2bda..cb72826c 100644 Binary files a/session/grpc/service_grpc.pb.go and b/session/grpc/service_grpc.pb.go differ diff --git a/session/grpc/types.pb.go b/session/grpc/types.pb.go index 39775117..eb7c25ba 100644 Binary files a/session/grpc/types.pb.go and b/session/grpc/types.pb.go differ diff --git a/v2/status/convert.go b/status/convert.go similarity index 93% rename from v2/status/convert.go rename to status/convert.go index 5c05221f..8195096d 100644 --- a/v2/status/convert.go +++ b/status/convert.go @@ -1,8 +1,8 @@ package status import ( - "github.com/nspcc-dev/neofs-api-go/rpc/grpc" - "github.com/nspcc-dev/neofs-api-go/rpc/message" + "github.com/nspcc-dev/neofs-api-go/v2/rpc/grpc" + "github.com/nspcc-dev/neofs-api-go/v2/rpc/message" status "github.com/nspcc-dev/neofs-api-go/v2/status/grpc" ) diff --git a/v2/status/grpc/types.go b/status/grpc/types.go similarity index 100% rename from v2/status/grpc/types.go rename to status/grpc/types.go diff --git a/v2/status/grpc/types.pb.go b/status/grpc/types.pb.go similarity index 100% rename from v2/status/grpc/types.pb.go rename to status/grpc/types.pb.go diff --git a/v2/status/marshal.go b/status/marshal.go similarity index 94% rename from v2/status/marshal.go rename to status/marshal.go index 8170325b..da6572e5 100644 --- a/v2/status/marshal.go +++ b/status/marshal.go @@ -1,9 +1,9 @@ package status import ( - "github.com/nspcc-dev/neofs-api-go/rpc/message" - protoutil "github.com/nspcc-dev/neofs-api-go/util/proto" + "github.com/nspcc-dev/neofs-api-go/v2/rpc/message" status "github.com/nspcc-dev/neofs-api-go/v2/status/grpc" + protoutil "github.com/nspcc-dev/neofs-api-go/v2/util/proto" ) const ( diff --git a/v2/status/message_test.go b/status/message_test.go similarity index 73% rename from v2/status/message_test.go rename to status/message_test.go index c301162d..b6f8d2d9 100644 --- a/v2/status/message_test.go +++ b/status/message_test.go @@ -3,8 +3,8 @@ package status_test import ( "testing" - "github.com/nspcc-dev/neofs-api-go/rpc/message" - messagetest "github.com/nspcc-dev/neofs-api-go/rpc/message/test" + "github.com/nspcc-dev/neofs-api-go/v2/rpc/message" + messagetest "github.com/nspcc-dev/neofs-api-go/v2/rpc/message/test" statustest "github.com/nspcc-dev/neofs-api-go/v2/status/test" ) diff --git a/v2/status/status.go b/status/status.go similarity index 100% rename from v2/status/status.go rename to status/status.go diff --git a/v2/status/test/generate.go b/status/test/generate.go similarity index 100% rename from v2/status/test/generate.go rename to status/test/generate.go diff --git a/v2/status/types.go b/status/types.go similarity index 100% rename from v2/status/types.go rename to status/types.go diff --git a/storagegroup/grpc/types.pb.go b/storagegroup/grpc/types.pb.go index 94f1e05d..fa5b98cf 100644 Binary files a/storagegroup/grpc/types.pb.go and b/storagegroup/grpc/types.pb.go differ diff --git a/tombstone/grpc/types.pb.go b/tombstone/grpc/types.pb.go index e6fc2d03..f2f3db64 100644 Binary files a/tombstone/grpc/types.pb.go and b/tombstone/grpc/types.pb.go differ