-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdaemon.proto
More file actions
59 lines (49 loc) · 1.27 KB
/
daemon.proto
File metadata and controls
59 lines (49 loc) · 1.27 KB
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
/** Service responsible for coordinating environment daemons */
syntax = "proto3";
package workflow;
option go_package = "./pb";
service daemon {
rpc Suspend (DaemonSuspendRequest) returns (DaemonSuspendResponse) {}
rpc Resume (DaemonResumeRequest) returns (DaemonResumeResponse) {}
rpc List (DaemonListRequest) returns (DaemonListResponse) {}
}
/**
* Details about a daemon
*/
message DaemonDetail {
string Name = 1; // Name of the deamon
string Command = 2; // Command executed to start the daemon
bool Suspended = 3; // If the daemon is suspended
}
/**
* Request to suspend daemons for an environment
*/
message DaemonSuspendRequest {
string Environment = 1; // Environment name
}
/**
* Response if the suspend request was susccessful
*/
message DaemonSuspendResponse {}
/**
* Request daemons are resumed for an environment
*/
message DaemonResumeRequest {
string Environment = 1; // Name of the environment
}
/**
* Response if resume request was sucessful
*/
message DaemonResumeResponse {}
/**
* Request a list of daemons for an environment
*/
message DaemonListRequest {
string Environment = 1; // Name of the environment
}
/**
* Daemon list of an environment
*/
message DaemonListResponse {
repeated DaemonDetail List = 1; // List of daemon details
}