Skip to content

Commit

Permalink
feat(proto): csc version request response
Browse files Browse the repository at this point in the history
  • Loading branch information
vkumbhar94 committed Jun 2, 2022
1 parent 666e5ff commit a3152b9
Show file tree
Hide file tree
Showing 4 changed files with 194 additions and 17 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# k8s-collectorset-controller-proto
Collectorset Protobufferes

## Build
Run `make` and commit all changed files.
Create new release as appropriate
193 changes: 176 additions & 17 deletions api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions constants/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Package constants has common constants
package constants

const HealthServerServiceName = "grpc.health.v1.Health"
10 changes: 10 additions & 0 deletions proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package api;
service CollectorSetController {
// Retrieves a collector ID.
rpc CollectorID(CollectorIDRequest) returns (CollectorIDReply) {}
rpc CSCVersion(CSCVersionRequest) returns (CSCVersionReply) {}
}

// The CollectorIDRequest message for a collector ID.
Expand All @@ -19,3 +20,12 @@ message CollectorIDRequest {
message CollectorIDReply {
int32 id = 1;
}

// The CSCVersionRequest message for a CSC Version.
message CSCVersionRequest {
}

// The CSCVersionReply response message from a CSC Version request.
message CSCVersionReply {
string CSCVersion = 1;
}

0 comments on commit a3152b9

Please sign in to comment.