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
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceConfig {
    #[prost(int32, tag = "1")]
    pub node_id: i32,
    #[prost(string, tag = "2")]
    pub service: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "3")]
    pub startup: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "4")]
    pub validate: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "5")]
    pub shutdown: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "6")]
    pub files: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "7")]
    pub directories: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceFileConfig {
    #[prost(int32, tag = "1")]
    pub node_id: i32,
    #[prost(string, tag = "2")]
    pub service: ::prost::alloc::string::String,
    #[prost(string, tag = "3")]
    pub file: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub data: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceValidationMode {}
/// Nested message and enum types in `ServiceValidationMode`.
pub mod service_validation_mode {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Enum {
        Blocking = 0,
        NonBlocking = 1,
        Timer = 2,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceAction {}
/// Nested message and enum types in `ServiceAction`.
pub mod service_action {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
    #[repr(i32)]
    pub enum Enum {
        Start = 0,
        Stop = 1,
        Restart = 2,
        Validate = 3,
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceDefaults {
    #[prost(string, tag = "1")]
    pub node_type: ::prost::alloc::string::String,
    #[prost(string, repeated, tag = "2")]
    pub services: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Service {
    #[prost(string, tag = "1")]
    pub group: ::prost::alloc::string::String,
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeServiceData {
    #[prost(string, repeated, tag = "1")]
    pub executables: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "2")]
    pub dependencies: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "3")]
    pub dirs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "4")]
    pub configs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "5")]
    pub startup: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, repeated, tag = "6")]
    pub validate: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(enumeration = "service_validation_mode::Enum", tag = "7")]
    pub validation_mode: i32,
    #[prost(int32, tag = "8")]
    pub validation_timer: i32,
    #[prost(string, repeated, tag = "9")]
    pub shutdown: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(string, tag = "10")]
    pub meta: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NodeServiceConfig {
    #[prost(int32, tag = "1")]
    pub node_id: i32,
    #[prost(string, tag = "2")]
    pub service: ::prost::alloc::string::String,
    #[prost(message, optional, tag = "3")]
    pub data: ::core::option::Option<NodeServiceData>,
    #[prost(map = "string, string", tag = "4")]
    pub files:
        ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServicesRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServicesResponse {
    #[prost(message, repeated, tag = "1")]
    pub services: ::prost::alloc::vec::Vec<Service>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServiceDefaultsRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetServiceDefaultsResponse {
    #[prost(message, repeated, tag = "1")]
    pub defaults: ::prost::alloc::vec::Vec<ServiceDefaults>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetServiceDefaultsRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(message, repeated, tag = "2")]
    pub defaults: ::prost::alloc::vec::Vec<ServiceDefaults>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetServiceDefaultsResponse {
    #[prost(bool, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceConfigsRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceConfigsResponse {
    #[prost(message, repeated, tag = "1")]
    pub configs: ::prost::alloc::vec::Vec<NodeServiceConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(int32, tag = "2")]
    pub node_id: i32,
    #[prost(string, tag = "3")]
    pub service: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceResponse {
    #[prost(message, optional, tag = "1")]
    pub service: ::core::option::Option<NodeServiceData>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceFileRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(int32, tag = "2")]
    pub node_id: i32,
    #[prost(string, tag = "3")]
    pub service: ::prost::alloc::string::String,
    #[prost(string, tag = "4")]
    pub file: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetNodeServiceFileResponse {
    #[prost(string, tag = "1")]
    pub data: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodeServiceRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(message, optional, tag = "2")]
    pub config: ::core::option::Option<ServiceConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodeServiceResponse {
    #[prost(bool, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodeServiceFileRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(message, optional, tag = "2")]
    pub config: ::core::option::Option<ServiceFileConfig>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetNodeServiceFileResponse {
    #[prost(bool, tag = "1")]
    pub result: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceActionRequest {
    #[prost(int32, tag = "1")]
    pub session_id: i32,
    #[prost(int32, tag = "2")]
    pub node_id: i32,
    #[prost(string, tag = "3")]
    pub service: ::prost::alloc::string::String,
    #[prost(enumeration = "service_action::Enum", tag = "4")]
    pub action: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ServiceActionResponse {
    #[prost(bool, tag = "1")]
    pub result: bool,
}