-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from netboxlabs/develop
🚚 release: v0.5.0
- Loading branch information
Showing
71 changed files
with
12,695 additions
and
3,293 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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
.PHONY: gen-diode-sdk-go gen-diode-sdk-python | ||
|
||
.PHONY: gen-diode-sdk-go | ||
gen-diode-sdk-go: | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.go.yaml | ||
|
||
gen-diode-go-internal: | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.go-internal.yaml | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.sdk.go.yaml | ||
|
||
.PHONY: gen-diode-sdk-python | ||
gen-diode-sdk-python: | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.py.yaml --include-imports | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.sdk.py.yaml --include-imports | ||
@find ../diode-sdk-python/netboxlabs/diode/sdk \( -name '*.py' -o -name '*.pyi' \) \ | ||
-exec sed -i '' 's/^from diode.v1/from netboxlabs.diode.sdk.diode.v1/; s/^from validate/from netboxlabs.diode.sdk.validate/' {} \; | ||
-exec sed -i.bak -e 's/^from diode.v1/from netboxlabs.diode.sdk.diode.v1/' \ | ||
-e 's/^from validate/from netboxlabs.diode.sdk.validate/' {} \; -exec rm -f {}.bak \; | ||
|
||
.PHONY: gen-diode-server-go | ||
gen-diode-server-go: | ||
@cd diode-proto/ && buf format -w && buf generate --template buf.gen.server.go.yaml |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 8 additions & 7 deletions
15
diode-proto/buf.gen.go.yaml → diode-proto/buf.gen.sdk.go.yaml
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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
version: v1 | ||
version: v2 | ||
inputs: | ||
- proto_file: diode/v1/ingester.proto | ||
plugins: | ||
- plugin: go | ||
- local: protoc-gen-go | ||
out: ../../diode-sdk-go/ | ||
opt: module=github.com/netboxlabs/diode-sdk-go | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
- remote: buf.build/grpc/go:v1.3.0 | ||
out: ../../diode-sdk-go/ | ||
opt: module=github.com/netboxlabs/diode-sdk-go | ||
- plugin: buf.build/bufbuild/validate-go:v1.0.4 | ||
- remote: buf.build/bufbuild/validate-go:v1.0.4 | ||
out: ../../diode-sdk-go/ | ||
opt: module=github.com/netboxlabs/diode-sdk-go | ||
- plugin: buf.build/community/pseudomuto-doc:v1.5.1 | ||
- remote: buf.build/community/pseudomuto-doc:v1.5.1 | ||
out: ../docs/ | ||
opt: | ||
- markdown,diode-proto.md | ||
opt: markdown,diode-proto.md |
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,10 @@ | ||
version: v2 | ||
inputs: | ||
- proto_file: diode/v1/ingester.proto | ||
plugins: | ||
- remote: buf.build/protocolbuffers/python:v26.1 | ||
out: ../../diode-sdk-python/netboxlabs/diode/sdk/ | ||
- remote: buf.build/protocolbuffers/pyi:v26.1 | ||
out: ../../diode-sdk-python/netboxlabs/diode/sdk/ | ||
- remote: buf.build/grpc/python:v1.62.1 | ||
out: ../../diode-sdk-python/netboxlabs/diode/sdk/ |
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,20 @@ | ||
version: v2 | ||
managed: | ||
enabled: true | ||
override: | ||
- file_option: go_package | ||
path: diode/v1/ingester.proto | ||
value: github.com/netboxlabs/diode/diode-server/gen/diode/v1/diodepb | ||
- file_option: go_package | ||
path: diode/v1/reconciler.proto | ||
value: github.com/netboxlabs/diode/diode-server/gen/diode/v1/reconcilerpb | ||
plugins: | ||
- local: protoc-gen-go | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode | ||
- remote: buf.build/grpc/go:v1.3.0 | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode | ||
- remote: buf.build/bufbuild/validate-go:v1.0.4 | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode |
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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
version: v2 | ||
deps: | ||
- remote: buf.build | ||
owner: envoyproxy | ||
repository: protoc-gen-validate | ||
- name: buf.build/envoyproxy/protoc-gen-validate | ||
commit: 71881f09a0c5420a9545a07987a86728 | ||
digest: shake256:d320bbf06653b1b2b45a1f95bfa82bf7b998221a777a042708c50d6f86a30d1a85b50c5704c597142d9b308280efe1295d39d76d1abea5f7046d3df4c8cc3cef | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
digest: b5:e8a034a81f1d6218f712879269bedac768c9e39452d7a92f83d70923fcd6aa9eb02c81ff6ff337cd0dd9b9fe719d6c4459e655f662ae7112aaa1c2110992afd0 | ||
- name: buf.build/googleapis/googleapis | ||
commit: 7a6bc1e3207144b38e9066861e1de0ff | ||
digest: shake256:d646836485c34192401253703c4e7ce899c826fceec060bf4b2a62c4749bd9976dc960833e134a1f814725e1ffd60b1bb3cf0335a7e99ef0e8cec34b070ffb66 | ||
digest: b5:6d05bde5ed4cd22531d7ca6467feb828d2dc45cc9de12ce3345fbddd64ddb1bf0db756558c32ca49e6bc7de4426ada8960d5590e8446854b81f5f36f0916dc48 |
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 |
---|---|---|
@@ -1,13 +1,19 @@ | ||
version: v1 | ||
version: v2 | ||
deps: | ||
- buf.build/googleapis/googleapis | ||
- buf.build/envoyproxy/protoc-gen-validate | ||
breaking: | ||
use: | ||
- FILE | ||
- buf.build/googleapis/googleapis | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- FIELD_NOT_REQUIRED | ||
- PACKAGE_NO_IMPORT_CYCLE | ||
- RPC_REQUEST_STANDARD_NAME | ||
- RPC_RESPONSE_STANDARD_NAME | ||
disallow_comment_ignores: true | ||
breaking: | ||
use: | ||
- FILE | ||
except: | ||
- EXTENSION_NO_DELETE | ||
- FIELD_SAME_DEFAULT |
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
Oops, something went wrong.