2021-02-15 07:50:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
option java_package = "com.github.baez90.inetmock.rpc";
|
|
|
|
option java_outer_classname = "AuditProto";
|
2021-02-15 16:59:40 +00:00
|
|
|
option csharp_namespace = "INetMock.Client.Rpc";
|
2021-02-15 07:50:51 +00:00
|
|
|
|
2021-02-15 16:59:40 +00:00
|
|
|
import 'audit/event_entity.proto';
|
2021-02-15 07:50:51 +00:00
|
|
|
|
|
|
|
package inetmock.rpc;
|
|
|
|
|
|
|
|
enum FileOpenMode {
|
|
|
|
TRUNCATE = 0;
|
|
|
|
APPEND = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WatchEventsRequest {
|
|
|
|
string watcherName = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterFileSinkRequest {
|
|
|
|
string targetPath = 1;
|
|
|
|
FileOpenMode openMode = 2;
|
|
|
|
uint32 permissions = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RegisterFileSinkResponse {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveFileSinkRequest {
|
|
|
|
string targetPath = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RemoveFileSinkResponse {
|
|
|
|
bool SinkGotRemoved = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListSinksRequest {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListSinksResponse {
|
|
|
|
repeated string sinks = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
service Audit {
|
|
|
|
rpc WatchEvents (WatchEventsRequest) returns (stream inetmock.audit.EventEntity);
|
|
|
|
rpc RegisterFileSink (RegisterFileSinkRequest) returns (RegisterFileSinkResponse);
|
|
|
|
rpc RemoveFileSink (RemoveFileSinkRequest) returns (RemoveFileSinkResponse);
|
|
|
|
rpc ListSinks(ListSinksRequest) returns (ListSinksResponse);
|
2021-02-15 16:59:40 +00:00
|
|
|
}
|