forked from TrueCloudLab/frostfs-api-go
Re-compile NeoFS API proto files using updated script
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
180da74e5c
commit
0f09f0dfc6
33 changed files with 10 additions and 13 deletions
BIN
accounting/grpc/service.pb.go
generated
BIN
accounting/grpc/service.pb.go
generated
Binary file not shown.
BIN
accounting/grpc/service_grpc.pb.go
generated
BIN
accounting/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
accounting/grpc/types.pb.go
generated
BIN
accounting/grpc/types.pb.go
generated
Binary file not shown.
BIN
acl/grpc/types.pb.go
generated
BIN
acl/grpc/types.pb.go
generated
Binary file not shown.
BIN
audit/grpc/types.pb.go
generated
BIN
audit/grpc/types.pb.go
generated
Binary file not shown.
BIN
container/grpc/service.pb.go
generated
BIN
container/grpc/service.pb.go
generated
Binary file not shown.
BIN
container/grpc/service_grpc.pb.go
generated
BIN
container/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
container/grpc/types.pb.go
generated
BIN
container/grpc/types.pb.go
generated
Binary file not shown.
BIN
netmap/grpc/service.pb.go
generated
BIN
netmap/grpc/service.pb.go
generated
Binary file not shown.
BIN
netmap/grpc/service_grpc.pb.go
generated
BIN
netmap/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
netmap/grpc/types.pb.go
generated
BIN
netmap/grpc/types.pb.go
generated
Binary file not shown.
BIN
object/grpc/service.pb.go
generated
BIN
object/grpc/service.pb.go
generated
Binary file not shown.
BIN
object/grpc/service_grpc.pb.go
generated
BIN
object/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
object/grpc/types.pb.go
generated
BIN
object/grpc/types.pb.go
generated
Binary file not shown.
11
prepare.sh
11
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
|
||||
|
|
BIN
refs/grpc/types.pb.go
generated
BIN
refs/grpc/types.pb.go
generated
Binary file not shown.
BIN
reputation/grpc/service.pb.go
generated
BIN
reputation/grpc/service.pb.go
generated
Binary file not shown.
BIN
reputation/grpc/service_grpc.pb.go
generated
BIN
reputation/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
reputation/grpc/types.pb.go
generated
BIN
reputation/grpc/types.pb.go
generated
Binary file not shown.
BIN
session/grpc/service.pb.go
generated
BIN
session/grpc/service.pb.go
generated
Binary file not shown.
BIN
session/grpc/service_grpc.pb.go
generated
BIN
session/grpc/service_grpc.pb.go
generated
Binary file not shown.
BIN
session/grpc/types.pb.go
generated
BIN
session/grpc/types.pb.go
generated
Binary file not shown.
|
@ -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"
|
||||
)
|
||||
|
|
@ -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 (
|
|
@ -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"
|
||||
)
|
||||
|
BIN
storagegroup/grpc/types.pb.go
generated
BIN
storagegroup/grpc/types.pb.go
generated
Binary file not shown.
BIN
tombstone/grpc/types.pb.go
generated
BIN
tombstone/grpc/types.pb.go
generated
Binary file not shown.
Loading…
Reference in a new issue