Skip to content

Commit 8ddacdd

Browse files
Added proto files as per daemons
1 parent fb1343e commit 8ddacdd

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

proto/acl.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
syntax = "proto3";
2+
3+
package acl;
4+
5+
option go_package = 'github.com/PythonHacker24/linux-acl-management-aclapi/internal/grpcserver/protos;protos';
6+
7+
service ACLService {
8+
rpc ApplyACLEntry (ApplyACLRequest) returns (ApplyACLResponse);
9+
}
10+
11+
message ACLEntry {
12+
string entity_type = 1; // "user", "group", "mask", "other"
13+
string entity = 2; // e.g., "alice", "", etc.
14+
string permissions = 3; // e.g., "rw-"
15+
string action = 4; // "add", "modify", "remove"
16+
bool is_default = 5;
17+
}
18+
19+
message ApplyACLRequest {
20+
string transactionID = 1;
21+
string target_path = 2;
22+
ACLEntry entry = 3;
23+
}
24+
25+
message ApplyACLResponse {
26+
bool success = 1;
27+
string message = 2;
28+
}

proto/ping.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
syntax = "proto3";
2+
3+
package protos;
4+
5+
option go_package = 'github.com/PythonHacker24/linux-acl-management-aclapi/internal/grpcserver/protos;protos';
6+
7+
service PingService {
8+
rpc Ping (PingRequest) returns (PingResponse);
9+
}
10+
11+
message PingRequest {}
12+
13+
message PingResponse {
14+
string message = 1;
15+
}

0 commit comments

Comments
 (0)