summaryrefslogtreecommitdiff
path: root/protos/ability.proto
diff options
context:
space:
mode:
Diffstat (limited to 'protos/ability.proto')
-rw-r--r--protos/ability.proto13
1 files changed, 13 insertions, 0 deletions
diff --git a/protos/ability.proto b/protos/ability.proto
new file mode 100644
index 00000000..656f4f97
--- /dev/null
+++ b/protos/ability.proto
@@ -0,0 +1,13 @@
+service Ability {
+ rpc Allowed (AllowRequest) returns (AllowReply) {}
+}
+
+message AllowRequest {
+ required string subject = 1;
+ required string permission = 2;
+ required string resource = 3;
+}
+
+message AllowReply {
+ required bool result = 1;
+}