summaryrefslogtreecommitdiff
path: root/vendor/google.golang.org/grpc/codegen.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-09 18:35:09 +0100
committerGitHub <noreply@github.com>2021-02-09 18:35:09 +0100
commit763d522983b819ecd38689c9c0840069d1e2b530 (patch)
treec4d469f69a056e2058dc1530df7e2b6ac3f3eafa /vendor/google.golang.org/grpc/codegen.sh
parentf98605e0e4f25c148b27cc617976357ff5b9d96e (diff)
parent08d8290f1d65a254b6794f7fe87a6f769b2ca792 (diff)
downloadpodman-763d522983b819ecd38689c9c0840069d1e2b530.tar.gz
podman-763d522983b819ecd38689c9c0840069d1e2b530.tar.bz2
podman-763d522983b819ecd38689c9c0840069d1e2b530.zip
Merge pull request #9281 from containers/dependabot/go_modules/github.com/containers/ocicrypt-1.1.0
Bump github.com/containers/ocicrypt from 1.0.3 to 1.1.0
Diffstat (limited to 'vendor/google.golang.org/grpc/codegen.sh')
-rw-r--r--vendor/google.golang.org/grpc/codegen.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/google.golang.org/grpc/codegen.sh b/vendor/google.golang.org/grpc/codegen.sh
new file mode 100644
index 000000000..4cdc6ba7c
--- /dev/null
+++ b/vendor/google.golang.org/grpc/codegen.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/env bash
+
+# This script serves as an example to demonstrate how to generate the gRPC-Go
+# interface and the related messages from .proto file.
+#
+# It assumes the installation of i) Google proto buffer compiler at
+# https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen
+# plugin at https://github.com/golang/protobuf (after 2015-02-20). If you have
+# not, please install them first.
+#
+# We recommend running this script at $GOPATH/src.
+#
+# If this is not what you need, feel free to make your own scripts. Again, this
+# script is for demonstration purpose.
+#
+proto=$1
+protoc --go_out=plugins=grpc:. $proto