mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-14 11:17:33 +02:00
39 lines
748 B
Protocol Buffer
39 lines
748 B
Protocol Buffer
syntax = "proto3";
|
|
package headscale.v1;
|
|
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
|
|
|
message ACLPolicy {
|
|
map<string,Group> groups = 1;
|
|
map<string,string> hosts = 2;
|
|
map<string,TagOwners> tag_owners = 3;
|
|
repeated ACL acls = 4;
|
|
repeated ACLTest acl_test = 5;
|
|
}
|
|
|
|
message Group {
|
|
repeated string group = 1;
|
|
}
|
|
|
|
message TagOwners {
|
|
repeated string tag_owners = 1;
|
|
}
|
|
|
|
message ACL {
|
|
string action = 1;
|
|
string protocol = 2;
|
|
repeated string sources = 3;
|
|
repeated string destinations = 4;
|
|
}
|
|
|
|
message ACLTest {
|
|
string source = 1;
|
|
repeated string accept = 2;
|
|
repeated string deny = 3;
|
|
}
|
|
|
|
message ListACLPolicyRequest {
|
|
}
|
|
|
|
message ListACLPolicyResponse {
|
|
ACLPolicy policy = 1;
|
|
} |