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