File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments