rebacs/proto/rebacs.proto

46 lines
721 B
Protocol Buffer
Raw Normal View History

syntax = "proto3";
package eu.zettoit.rebacs;
2023-08-27 22:10:16 +02:00
service RebacService {
rpc Grant(GrantReq) returns (GrantRes);
rpc Revoke(RevokeReq) returns (RevokeRes);
rpc Exists(ExistsReq) returns (ExistsRes);
rpc IsPermitted(IsPermittedReq) returns (IsPermittedRes);
}
2023-08-27 22:10:16 +02:00
message GrantReq{
Object src = 1;
Object dst = 2;
}
2023-08-27 22:10:16 +02:00
message GrantRes{}
2023-08-27 22:10:16 +02:00
message RevokeReq{
Object src = 1;
Object dst = 2;
}
2023-08-27 22:10:16 +02:00
message RevokeRes{}
2023-08-27 22:10:16 +02:00
message ExistsReq{
Object src = 1;
Object dst = 2;
}
2023-08-27 22:10:16 +02:00
message ExistsRes{
bool exists = 1;
}
2023-08-27 22:10:16 +02:00
message IsPermittedReq{
Object src = 1;
Object dst = 2;
}
2023-08-27 22:10:16 +02:00
message IsPermittedRes{
bool permitted = 1;
}
message Object{
string namespace = 1;
string id = 2;
optional string relation = 3;
}