Skip to content

Commit

Permalink
Add protoc-gen-validate v0.9.1 plugins (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Mar 7, 2023
1 parent 01b836b commit 8147bfd
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-cpp/v0.9.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-cpp/v0.9.1/Dockerfile
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" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/validate-cpp/v0.9.1/buf.plugin.yaml
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
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-go/v0.9.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-go/v0.9.1/Dockerfile
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" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/validate-go/v0.9.1/buf.plugin.yaml
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
2 changes: 2 additions & 0 deletions plugins/bufbuild/validate-java/v0.9.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
9 changes: 9 additions & 0 deletions plugins/bufbuild/validate-java/v0.9.1/Dockerfile
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" ]
11 changes: 11 additions & 0 deletions plugins/bufbuild/validate-java/v0.9.1/buf.plugin.yaml
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:7kBHEzJzjsYjMfxEuyCibFl4IdgfDnfyt3cnAWm/Mh0=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:bR8olkhjnAbtCyuDaTngXNDrAmQgnQn1+GgqwQqcRXY=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:puu8FKu4EDgR16z7LYbISbJv4Lgn3Rdh9gN9fVzux0k=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2aorQdLLQIb1C3nKz0Per5FL0gij2Y3iBq+/GlfHnxA=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

0 comments on commit 8147bfd

Please sign in to comment.