api/proto/rpc/audit.proto

50 lines
1.1 KiB
Protocol Buffer
Raw Normal View History

2021-02-13 17:20:57 +00:00
syntax = "proto3";
2021-02-21 09:09:35 +00:00
package inetmock.rpc;
option csharp_namespace = "INetMock.Client.Rpc";
2021-02-13 17:20:57 +00:00
option go_package = "gitlab.com/inetmock/inetmock/pkg/rpc";
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 09:09:35 +00:00
import "audit/event_entity.proto";
2021-02-13 17:20:57 +00:00
enum FileOpenMode {
2021-02-21 09:09:35 +00:00
TRUNCATE = 0;
APPEND = 1;
2021-02-13 17:20:57 +00:00
}
message WatchEventsRequest {
2021-02-21 09:09:35 +00:00
string watcherName = 1;
2021-02-13 17:20:57 +00:00
}
message RegisterFileSinkRequest {
2021-02-21 09:09:35 +00:00
string targetPath = 1;
2021-02-13 17:20:57 +00:00
}
message RegisterFileSinkResponse {
2021-02-21 09:09:35 +00:00
string resolvedPath = 1;
2021-02-13 17:20:57 +00:00
}
message RemoveFileSinkRequest {
2021-02-21 09:09:35 +00:00
string targetPath = 1;
2021-02-13 17:20:57 +00:00
}
message RemoveFileSinkResponse {
2021-02-21 09:09:35 +00:00
bool SinkGotRemoved = 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
}
service Audit {
2021-02-21 09:09:35 +00:00
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
}