-
Notifications
You must be signed in to change notification settings - Fork 3
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 #43 from netboxlabs/feat-OBS-390-retrieve-ingestio…
…n-data-sources feat: OBS-390 - [reconciler] implement ReconcilerService.RetrieveIngestionDataSources
- Loading branch information
Showing
19 changed files
with
1,313 additions
and
46 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
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 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 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 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 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 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 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 | ||
plugins: | ||
- plugin: go | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode/diode-server | ||
- plugin: buf.build/grpc/go:v1.3.0 | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode/diode-server | ||
- plugin: buf.build/bufbuild/validate-go:v1.0.4 | ||
out: ../ | ||
opt: module=github.com/netboxlabs/diode/diode-server |
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,13 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: envoyproxy | ||
repository: protoc-gen-validate | ||
commit: 71881f09a0c5420a9545a07987a86728 | ||
digest: shake256:d320bbf06653b1b2b45a1f95bfa82bf7b998221a777a042708c50d6f86a30d1a85b50c5704c597142d9b308280efe1295d39d76d1abea5f7046d3df4c8cc3cef | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
commit: 7e6f6e774e29406da95bd61cdcdbc8bc | ||
digest: shake256:fe43dd2265ea0c07d76bd925eeba612667cf4c948d2ce53d6e367e1b4b3cb5fa69a51e6acb1a6a50d32f894f054a35e6c0406f6808a483f2752e10c866ffbf73 |
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,13 @@ | ||
version: v1 | ||
deps: | ||
- buf.build/googleapis/googleapis | ||
- buf.build/envoyproxy/protoc-gen-validate | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
except: | ||
- RPC_REQUEST_STANDARD_NAME | ||
- RPC_RESPONSE_STANDARD_NAME |
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,44 @@ | ||
syntax = "proto3"; | ||
|
||
package reconciler.v1; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
import "validate/validate.proto"; | ||
|
||
option go_package = "github.com/netboxlabs/diode/diode-server/reconciler/v1/reconcilerpb"; | ||
|
||
// An ingestion data source | ||
message IngestionDataSource { | ||
string name = 1 [(validate.rules).string = { | ||
min_len: 1, | ||
max_len: 255 | ||
}]; | ||
string api_key = 2 [(validate.rules).string = { | ||
min_len: 40, | ||
max_len: 40 | ||
}]; | ||
} | ||
|
||
// The request to retrieve ingestion data sources | ||
message RetrieveIngestionDataSourcesRequest { | ||
string name = 1 [(validate.rules).string = { | ||
min_len: 1, | ||
max_len: 255 | ||
}]; | ||
string sdk_name = 2 [(validate.rules).string = { | ||
min_len: 1, | ||
max_len: 255 | ||
}]; | ||
string sdk_version = 3 [(validate.rules).string = {pattern: "^(\\d)+\\.(\\d)+\\.(\\d)+$"}]; | ||
} | ||
|
||
// The response from the retrieve ingestion data sources request | ||
message RetrieveIngestionDataSourcesResponse { | ||
repeated IngestionDataSource ingestion_data_sources = 1; | ||
} | ||
|
||
// Reconciler service API | ||
service ReconcilerService { | ||
// Retrieves ingestion data sources | ||
rpc RetrieveIngestionDataSources(RetrieveIngestionDataSourcesRequest) returns (RetrieveIngestionDataSourcesResponse) {} | ||
} |
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.