-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new GPRC service to stream policy updates
Signed-off-by: Wazir Ahmed <wazir@accuknox.com>
- Loading branch information
1 parent
797e6b4
commit cdb0806
Showing
5 changed files
with
473 additions
and
1 deletion.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
syntax = "proto3"; | ||
|
||
package v1.discovery; | ||
|
||
option go_package = "github.com/accuknox/knoxAutoPolicy/protos/v1/discovery"; | ||
|
||
service Discovery { | ||
rpc GetPolicy(GetPolicyRequest) returns (stream GetPolicyResponse) {} | ||
} | ||
|
||
message GetPolicyRequest { | ||
bool follow = 1; | ||
repeated string kind = 2; | ||
string cluster = 3; | ||
string namespace = 4; | ||
repeated string label = 5; | ||
} | ||
|
||
message GetPolicyResponse { | ||
string kind = 1; | ||
string cluster = 2; | ||
string namespace = 3; | ||
repeated string label = 4; | ||
string name = 5; | ||
bytes yaml = 6; | ||
string error = 100; | ||
} |
Oops, something went wrong.