This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
meshops.proto
76 lines (60 loc) · 1.55 KB
/
meshops.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
syntax="proto3";
package meshes;
// option go_package = "github.com/layer5io/meshery/meshes;meshes";
service MeshService {
rpc CreateMeshInstance(CreateMeshInstanceRequest) returns (CreateMeshInstanceResponse) {}
rpc MeshName(MeshNameRequest) returns (MeshNameResponse) {}
rpc ApplyOperation(ApplyRuleRequest) returns(ApplyRuleResponse) {}
rpc SupportedOperations(SupportedOperationsRequest) returns (SupportedOperationsResponse) {}
rpc StreamEvents(EventsRequest) returns (stream EventsResponse) {}
}
message CreateMeshInstanceRequest {
bytes k8sConfig = 1;
string contextName = 2;
}
message CreateMeshInstanceResponse {}
message MeshNameRequest{}
message MeshNameResponse {
string name = 1;
}
message ApplyRuleRequest {
string opName = 1;
string namespace = 2;
string username = 3;
string custom_body = 4;
bool delete_op = 5;
string operation_id = 6;
}
message ApplyRuleResponse {
string error = 1;
string operation_id = 2;
}
message SupportedOperationsRequest {}
message SupportedOperationsResponse {
repeated SupportedOperation ops = 1;
string error = 2;
}
message SupportedOperation {
string key = 1;
string value = 2;
OpCategory category = 3;
}
enum OpCategory {
INSTALL = 0;
SAMPLE_APPLICATION = 1;
CONFIGURE = 2;
VALIDATE = 3;
CUSTOM = 4;
}
enum EventType {
INFO = 0;
WARN = 1;
ERROR = 2;
}
message EventsRequest {}
message EventsResponse {
EventType event_type = 1;
string summary = 2;
string details = 3;
string operation_id = 4;
}