Skip to content

Commit a4ea52e

Browse files
authored
Merge pull request #9 from CoLearn-Dev/add_protos
- add remote_storage and policy_module
2 parents 6f4531f + e835954 commit a4ea52e

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

colink_policy_module.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
syntax = "proto3";
2+
package colink_policy_module;
3+
4+
import "google/protobuf/wrappers.proto";
5+
6+
message Rule {
7+
string rule_id = 1;
8+
TaskFilter task_filter = 2;
9+
string action = 3;
10+
int32 priority = 4;
11+
}
12+
13+
message TaskFilter {
14+
string task_id = 1;
15+
string protocol_name = 2;
16+
repeated string participants = 3;
17+
string role = 4;
18+
TaskFilter parent_task_filter = 5;
19+
google.protobuf.BoolValue require_agreement = 6;
20+
}
21+
22+
message Settings {
23+
bool enable = 1;
24+
repeated Rule rules = 2;
25+
}

colink_remote_storage.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
syntax = "proto3";
2+
package remote_storage;
3+
4+
message CreateParams {
5+
string remote_key_name = 1;
6+
bool is_public = 2;
7+
bytes payload = 3;
8+
}
9+
10+
message ReadParams {
11+
string remote_key_name = 1;
12+
bool is_public = 2;
13+
string holder_id = 3;
14+
}
15+
16+
message UpdateParams {
17+
string remote_key_name = 1;
18+
bool is_public = 2;
19+
bytes payload = 3;
20+
}
21+
22+
message DeleteParams {
23+
string remote_key_name = 1;
24+
bool is_public = 2;
25+
}

0 commit comments

Comments
 (0)