update(userspace/falco): mvoing proto enum defs outside

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2019-09-03 10:26:13 +00:00
committed by Leo Di Donato
parent 89e23164fa
commit e394bcf119

View File

@@ -2,17 +2,14 @@ syntax = "proto3";
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
service FalcoOutputService { service falco_output_service {
rpc Subscribe(FalcoOutputRequest) returns (stream FalcoOutputResponse); rpc Subscribe(falco_output_request) returns (stream falco_output_response);
} }
message FalcoOutputRequest { message falco_output_request {
} }
message FalcoOutputResponse { enum priority {
string id = 1;
google.protobuf.Timestamp time = 2;
enum Priority {
EMERGENCY = 0; EMERGENCY = 0;
ALERT = 1; ALERT = 1;
CRITICAL = 2; CRITICAL = 2;
@@ -22,12 +19,17 @@ message FalcoOutputResponse {
INFORMATIONAL = 6; INFORMATIONAL = 6;
DEBUG = 7; DEBUG = 7;
} }
Priority priority = 3;
enum Source { enum source {
SYSCALL = 0; SYSCALL = 0;
K8S_AUDIT = 1; K8S_AUDIT = 1;
} }
Source source = 4;
message falco_output_response {
string id = 1;
google.protobuf.Timestamp time = 2;
priority priority = 3;
source source = 4;
string rule = 5; string rule = 5;
string format = 6; string format = 6;
string output = 7; string output = 7;