api/proto/rpc/audit.proto

52 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2021-02-13 17:20:57 +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 07:51:54 +00:00
option csharp_namespace = "INetMock.Client.Rpc";
2021-02-13 17:20:57 +00:00
2021-02-15 16:06:50 +00:00
import 'audit/event_entity.proto';
2021-02-13 17:20:57 +00:00
package inetmock.rpc;
enum FileOpenMode {
TRUNCATE = 0;
APPEND = 1;
}
message WatchEventsRequest {
string watcherName = 1;
}
message RegisterFileSinkRequest {
string targetPath = 1;
}
message RegisterFileSinkResponse {
2021-02-16 15:50:23 +00:00
string resolvedPath = 1;
2021-02-13 17:20:57 +00:00
}
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 07:51:54 +00:00
}