2021-02-13 17:20:57 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2021-02-21 16:10:22 +00:00
|
|
|
package inetmock.rpc.v1;
|
2021-02-21 09:09:35 +00:00
|
|
|
|
|
|
|
option csharp_namespace = "INetMock.Client.Rpc";
|
2021-02-22 09:59:40 +00:00
|
|
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc/v1";
|
2021-02-13 17:20:57 +00:00
|
|
|
option java_multiple_files = true;
|
|
|
|
option java_outer_classname = "AuditProto";
|
2021-02-21 09:09:35 +00:00
|
|
|
option java_package = "com.github.baez90.inetmock.rpc";
|
2021-02-13 17:20:57 +00:00
|
|
|
|
2021-02-21 16:10:22 +00:00
|
|
|
import "audit/v1/event_entity.proto";
|
2021-02-13 17:20:57 +00:00
|
|
|
|
2021-02-21 16:10:22 +00:00
|
|
|
message WatchEventsRequest {
|
|
|
|
string watcher_name = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
2021-02-21 16:10:22 +00:00
|
|
|
message WatchEventsResponse {
|
|
|
|
inetmock.audit.v1.EventEntity entity = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterFileSinkRequest {
|
2021-02-21 16:10:22 +00:00
|
|
|
string target_path = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterFileSinkResponse {
|
2021-02-21 16:10:22 +00:00
|
|
|
string resolved_path = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveFileSinkRequest {
|
2021-02-21 16:10:22 +00:00
|
|
|
string target_path = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveFileSinkResponse {
|
2021-02-21 16:10:22 +00:00
|
|
|
bool sink_got_removed = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
2021-02-21 09:09:35 +00:00
|
|
|
message ListSinksRequest {}
|
2021-02-13 17:20:57 +00:00
|
|
|
|
|
|
|
message ListSinksResponse {
|
2021-02-21 09:09:35 +00:00
|
|
|
repeated string sinks = 1;
|
2021-02-13 17:20:57 +00:00
|
|
|
}
|
|
|
|
|
2021-02-21 16:10:22 +00:00
|
|
|
service AuditService {
|
|
|
|
rpc WatchEvents(WatchEventsRequest) returns (stream WatchEventsResponse);
|
2021-02-21 09:09:35 +00:00
|
|
|
rpc RegisterFileSink(RegisterFileSinkRequest) returns (RegisterFileSinkResponse);
|
|
|
|
rpc RemoveFileSink(RemoveFileSinkRequest) returns (RemoveFileSinkResponse);
|
|
|
|
rpc ListSinks(ListSinksRequest) returns (ListSinksResponse);
|
2021-02-15 07:51:54 +00:00
|
|
|
}
|