-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add protoc-gen-validate v0.9.1 plugins (#405)
- Loading branch information
1 parent
01b836b
commit 8147bfd
Showing
15 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.1-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-cpp . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-cpp" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-cpp | ||
plugin_version: v0.9.1 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates C++ code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/cpp:v22.0 | ||
output_languages: | ||
- cpp | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v0.9.1/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.1-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-go . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-go" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-go | ||
plugin_version: v0.9.1 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates Go code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/go:v1.28.1 | ||
output_languages: | ||
- go | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v0.9.1/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.1-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-java . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-java" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-java | ||
plugin_version: v0.9.1 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates Java code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/java:v22.0 | ||
output_languages: | ||
- java | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v0.9.1/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-cpp/v0.9.1/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:7kBHEzJzjsYjMfxEuyCibFl4IdgfDnfyt3cnAWm/Mh0= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-cpp/v0.9.1/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:bR8olkhjnAbtCyuDaTngXNDrAmQgnQn1+GgqwQqcRXY= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-go/v0.9.1/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:puu8FKu4EDgR16z7LYbISbJv4Lgn3Rdh9gN9fVzux0k= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-go/v0.9.1/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:2aorQdLLQIb1C3nKz0Per5FL0gij2Y3iBq+/GlfHnxA= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-java/v0.9.1/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-java/v0.9.1/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |