forked from RackHD/on-taskgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scheduler.proto
95 lines (75 loc) · 2.42 KB
/
scheduler.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
syntax = "proto3";
package scheduler;
service Scheduler {
rpc getBootstrap (getBootstrapRequest) returns (HttpReply) {}
rpc getTasksById (getTasksByIdRequest) returns (HttpReply) {}
rpc postTaskById (postTaskByIdRequest) returns (HttpReply) {}
rpc workflowsGetGraphs (workflowsGetGraphsRequest) returns (HttpReply) {}
rpc workflowsGetGraphsByName (workflowsGetGraphsByNameRequest) returns (HttpReply) {}
rpc workflowsPutGraphs (workflowsPutGraphsRequest) returns (HttpReply) {}
rpc workflowsDeleteGraphsByName (workflowsDeleteGraphsByNameRequest) returns (HttpReply) {}
rpc workflowsGet (workflowsGetRequest) returns (HttpReply) {}
rpc workflowsPost (workflowsPostRequest) returns (HttpReply) {}
rpc workflowsGetByInstanceId (workflowsGetByInstanceIdRequest) returns (HttpReply) {}
rpc workflowsAction (workflowsActionRequest) returns (HttpReply) {}
rpc workflowsDeleteByInstanceId (workflowsDeleteByInstanceIdRequest) returns (HttpReply) {}
rpc workflowsPutTask (workflowsPutTaskRequest) returns (HttpReply) {}
rpc workflowsGetAllTasks (workflowsGetAllTasksRequest) returns (HttpReply) {}
rpc workflowsGetTasksByName (workflowsGetTasksByNameRequest) returns (HttpReply) {}
rpc workflowsDeleteTasksByName (workflowsDeleteTasksByNameRequest) returns (HttpReply) {}
}
message getBootstrapRequest {
repeated string scope = 1;
string ipAddress = 2;
string macAddress = 3;
}
message getTasksByIdRequest {
string identifier = 1;
}
message postTaskByIdRequest {
string identifier = 1;
string config = 2;
}
message workflowsGetGraphsRequest {
}
message workflowsGetGraphsByNameRequest {
string injectableName = 1;
repeated string scope = 2;
}
message workflowsPutGraphsRequest {
string body = 1;
}
message workflowsDeleteGraphsByNameRequest {
string injectableName = 1;
}
message workflowsGetRequest {
string query = 1;
}
message workflowsPostRequest {
string nodeId = 1;
string configuration = 2;
}
message workflowsGetByInstanceIdRequest {
string identifier = 1;
}
message workflowsActionRequest {
string command = 1;
string identifier = 2;
}
message workflowsDeleteByInstanceIdRequest {
string identifier = 1;
}
message workflowsPutTaskRequest {
string body = 1;
}
message workflowsGetAllTasksRequest {
}
message workflowsGetTasksByNameRequest {
string injectableName = 1;
}
message workflowsDeleteTasksByNameRequest {
string injectableName = 1;
}
message HttpReply {
string response = 1;
}