kurtosis-sdk 0.49.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.d.ts +110 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.js +581 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.d.ts +236 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.js +1174 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.d.ts +918 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.js +7616 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_pb.d.ts +30 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_pb.js +70 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_web_pb.d.ts +44 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_grpc_web_pb.js +198 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_pb.d.ts +41 -0
- package/build/core/kurtosis_core_rpc_api_bindings/executable_module_service_pb.js +324 -0
- package/build/core/lib/constructor_calls.d.ts +33 -0
- package/build/core/lib/constructor_calls.js +328 -0
- package/build/core/lib/enclaves/enclave_context.d.ts +39 -0
- package/build/core/lib/enclaves/enclave_context.js +501 -0
- package/build/core/lib/enclaves/generic_api_container_client.d.ts +23 -0
- package/build/core/lib/enclaves/generic_api_container_client.js +6 -0
- package/build/core/lib/enclaves/generic_path_joiner.d.ts +3 -0
- package/build/core/lib/enclaves/generic_path_joiner.js +6 -0
- package/build/core/lib/enclaves/generic_tgz_archiver.d.ts +4 -0
- package/build/core/lib/enclaves/generic_tgz_archiver.js +2 -0
- package/build/core/lib/enclaves/grpc_node_api_container_client.d.ts +29 -0
- package/build/core/lib/enclaves/grpc_node_api_container_client.js +415 -0
- package/build/core/lib/enclaves/grpc_web_api_container_client.d.ts +28 -0
- package/build/core/lib/enclaves/grpc_web_api_container_client.js +415 -0
- package/build/core/lib/enclaves/node_tgz_archiver.d.ts +6 -0
- package/build/core/lib/enclaves/node_tgz_archiver.js +94 -0
- package/build/core/lib/enclaves/partition_connection.d.ts +20 -0
- package/build/core/lib/enclaves/partition_connection.js +62 -0
- package/build/core/lib/enclaves/template_and_data.d.ts +5 -0
- package/build/core/lib/enclaves/template_and_data.js +11 -0
- package/build/core/lib/enclaves/web_tgz_archiver.d.ts +5 -0
- package/build/core/lib/enclaves/web_tgz_archiver.js +26 -0
- package/build/core/lib/modules/module_context.d.ts +9 -0
- package/build/core/lib/modules/module_context.js +34 -0
- package/build/core/lib/services/container_config.d.ts +39 -0
- package/build/core/lib/services/container_config.js +85 -0
- package/build/core/lib/services/port_spec.d.ts +11 -0
- package/build/core/lib/services/port_spec.js +16 -0
- package/build/core/lib/services/service.d.ts +1 -0
- package/build/core/lib/services/service.js +6 -0
- package/build/core/lib/services/service_context.d.ts +19 -0
- package/build/core/lib/services/service_context.js +58 -0
- package/build/core/module_launch_api/args_io.d.ts +4 -0
- package/build/core/module_launch_api/args_io.js +60 -0
- package/build/core/module_launch_api/module_container_args.d.ts +8 -0
- package/build/core/module_launch_api/module_container_args.js +24 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_pb.d.ts +50 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_pb.js +186 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.d.ts +92 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.js +442 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_pb.d.ts +267 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_pb.js +2141 -0
- package/build/engine/lib/constructor_calls.d.ts +5 -0
- package/build/engine/lib/constructor_calls.js +34 -0
- package/build/engine/lib/kurtosis_context/generic_engine_client.d.ts +10 -0
- package/build/engine/lib/kurtosis_context/generic_engine_client.js +2 -0
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.d.ts +14 -0
- package/build/engine/lib/kurtosis_context/grpc_node_engine_client.js +165 -0
- package/build/engine/lib/kurtosis_context/grpc_web_engine_client.d.ts +14 -0
- package/build/engine/lib/kurtosis_context/grpc_web_engine_client.js +165 -0
- package/build/engine/lib/kurtosis_context/kurtosis_context.d.ts +19 -0
- package/build/engine/lib/kurtosis_context/kurtosis_context.js +236 -0
- package/build/index.d.ts +19 -0
- package/build/index.js +55 -0
- package/build/kurtosis_version/kurtosis_version.d.ts +1 -0
- package/build/kurtosis_version/kurtosis_version.js +8 -0
- package/package.json +59 -0
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var api_container_service_pb = require('./api_container_service_pb.js');
|
|
6
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_api_container_api_DownloadFilesArtifactArgs(arg) {
|
|
9
|
+
if (!(arg instanceof api_container_service_pb.DownloadFilesArtifactArgs)) {
|
|
10
|
+
throw new Error('Expected argument of type api_container_api.DownloadFilesArtifactArgs');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_api_container_api_DownloadFilesArtifactArgs(buffer_arg) {
|
|
16
|
+
return api_container_service_pb.DownloadFilesArtifactArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_api_container_api_DownloadFilesArtifactResponse(arg) {
|
|
20
|
+
if (!(arg instanceof api_container_service_pb.DownloadFilesArtifactResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type api_container_api.DownloadFilesArtifactResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_api_container_api_DownloadFilesArtifactResponse(buffer_arg) {
|
|
27
|
+
return api_container_service_pb.DownloadFilesArtifactResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_api_container_api_ExecCommandArgs(arg) {
|
|
31
|
+
if (!(arg instanceof api_container_service_pb.ExecCommandArgs)) {
|
|
32
|
+
throw new Error('Expected argument of type api_container_api.ExecCommandArgs');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_api_container_api_ExecCommandArgs(buffer_arg) {
|
|
38
|
+
return api_container_service_pb.ExecCommandArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function serialize_api_container_api_ExecCommandResponse(arg) {
|
|
42
|
+
if (!(arg instanceof api_container_service_pb.ExecCommandResponse)) {
|
|
43
|
+
throw new Error('Expected argument of type api_container_api.ExecCommandResponse');
|
|
44
|
+
}
|
|
45
|
+
return Buffer.from(arg.serializeBinary());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deserialize_api_container_api_ExecCommandResponse(buffer_arg) {
|
|
49
|
+
return api_container_service_pb.ExecCommandResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function serialize_api_container_api_ExecuteModuleArgs(arg) {
|
|
53
|
+
if (!(arg instanceof api_container_service_pb.ExecuteModuleArgs)) {
|
|
54
|
+
throw new Error('Expected argument of type api_container_api.ExecuteModuleArgs');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_api_container_api_ExecuteModuleArgs(buffer_arg) {
|
|
60
|
+
return api_container_service_pb.ExecuteModuleArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_api_container_api_ExecuteModuleResponse(arg) {
|
|
64
|
+
if (!(arg instanceof api_container_service_pb.ExecuteModuleResponse)) {
|
|
65
|
+
throw new Error('Expected argument of type api_container_api.ExecuteModuleResponse');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_api_container_api_ExecuteModuleResponse(buffer_arg) {
|
|
71
|
+
return api_container_service_pb.ExecuteModuleResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function serialize_api_container_api_GetModulesArgs(arg) {
|
|
75
|
+
if (!(arg instanceof api_container_service_pb.GetModulesArgs)) {
|
|
76
|
+
throw new Error('Expected argument of type api_container_api.GetModulesArgs');
|
|
77
|
+
}
|
|
78
|
+
return Buffer.from(arg.serializeBinary());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function deserialize_api_container_api_GetModulesArgs(buffer_arg) {
|
|
82
|
+
return api_container_service_pb.GetModulesArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function serialize_api_container_api_GetModulesResponse(arg) {
|
|
86
|
+
if (!(arg instanceof api_container_service_pb.GetModulesResponse)) {
|
|
87
|
+
throw new Error('Expected argument of type api_container_api.GetModulesResponse');
|
|
88
|
+
}
|
|
89
|
+
return Buffer.from(arg.serializeBinary());
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function deserialize_api_container_api_GetModulesResponse(buffer_arg) {
|
|
93
|
+
return api_container_service_pb.GetModulesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function serialize_api_container_api_GetServicesArgs(arg) {
|
|
97
|
+
if (!(arg instanceof api_container_service_pb.GetServicesArgs)) {
|
|
98
|
+
throw new Error('Expected argument of type api_container_api.GetServicesArgs');
|
|
99
|
+
}
|
|
100
|
+
return Buffer.from(arg.serializeBinary());
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function deserialize_api_container_api_GetServicesArgs(buffer_arg) {
|
|
104
|
+
return api_container_service_pb.GetServicesArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function serialize_api_container_api_GetServicesResponse(arg) {
|
|
108
|
+
if (!(arg instanceof api_container_service_pb.GetServicesResponse)) {
|
|
109
|
+
throw new Error('Expected argument of type api_container_api.GetServicesResponse');
|
|
110
|
+
}
|
|
111
|
+
return Buffer.from(arg.serializeBinary());
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function deserialize_api_container_api_GetServicesResponse(buffer_arg) {
|
|
115
|
+
return api_container_service_pb.GetServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function serialize_api_container_api_LoadModuleArgs(arg) {
|
|
119
|
+
if (!(arg instanceof api_container_service_pb.LoadModuleArgs)) {
|
|
120
|
+
throw new Error('Expected argument of type api_container_api.LoadModuleArgs');
|
|
121
|
+
}
|
|
122
|
+
return Buffer.from(arg.serializeBinary());
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function deserialize_api_container_api_LoadModuleArgs(buffer_arg) {
|
|
126
|
+
return api_container_service_pb.LoadModuleArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function serialize_api_container_api_LoadModuleResponse(arg) {
|
|
130
|
+
if (!(arg instanceof api_container_service_pb.LoadModuleResponse)) {
|
|
131
|
+
throw new Error('Expected argument of type api_container_api.LoadModuleResponse');
|
|
132
|
+
}
|
|
133
|
+
return Buffer.from(arg.serializeBinary());
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function deserialize_api_container_api_LoadModuleResponse(buffer_arg) {
|
|
137
|
+
return api_container_service_pb.LoadModuleResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function serialize_api_container_api_PauseServiceArgs(arg) {
|
|
141
|
+
if (!(arg instanceof api_container_service_pb.PauseServiceArgs)) {
|
|
142
|
+
throw new Error('Expected argument of type api_container_api.PauseServiceArgs');
|
|
143
|
+
}
|
|
144
|
+
return Buffer.from(arg.serializeBinary());
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
function deserialize_api_container_api_PauseServiceArgs(buffer_arg) {
|
|
148
|
+
return api_container_service_pb.PauseServiceArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function serialize_api_container_api_RemoveServiceArgs(arg) {
|
|
152
|
+
if (!(arg instanceof api_container_service_pb.RemoveServiceArgs)) {
|
|
153
|
+
throw new Error('Expected argument of type api_container_api.RemoveServiceArgs');
|
|
154
|
+
}
|
|
155
|
+
return Buffer.from(arg.serializeBinary());
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function deserialize_api_container_api_RemoveServiceArgs(buffer_arg) {
|
|
159
|
+
return api_container_service_pb.RemoveServiceArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function serialize_api_container_api_RemoveServiceResponse(arg) {
|
|
163
|
+
if (!(arg instanceof api_container_service_pb.RemoveServiceResponse)) {
|
|
164
|
+
throw new Error('Expected argument of type api_container_api.RemoveServiceResponse');
|
|
165
|
+
}
|
|
166
|
+
return Buffer.from(arg.serializeBinary());
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function deserialize_api_container_api_RemoveServiceResponse(buffer_arg) {
|
|
170
|
+
return api_container_service_pb.RemoveServiceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
function serialize_api_container_api_RenderTemplatesToFilesArtifactArgs(arg) {
|
|
174
|
+
if (!(arg instanceof api_container_service_pb.RenderTemplatesToFilesArtifactArgs)) {
|
|
175
|
+
throw new Error('Expected argument of type api_container_api.RenderTemplatesToFilesArtifactArgs');
|
|
176
|
+
}
|
|
177
|
+
return Buffer.from(arg.serializeBinary());
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
function deserialize_api_container_api_RenderTemplatesToFilesArtifactArgs(buffer_arg) {
|
|
181
|
+
return api_container_service_pb.RenderTemplatesToFilesArtifactArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function serialize_api_container_api_RenderTemplatesToFilesArtifactResponse(arg) {
|
|
185
|
+
if (!(arg instanceof api_container_service_pb.RenderTemplatesToFilesArtifactResponse)) {
|
|
186
|
+
throw new Error('Expected argument of type api_container_api.RenderTemplatesToFilesArtifactResponse');
|
|
187
|
+
}
|
|
188
|
+
return Buffer.from(arg.serializeBinary());
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function deserialize_api_container_api_RenderTemplatesToFilesArtifactResponse(buffer_arg) {
|
|
192
|
+
return api_container_service_pb.RenderTemplatesToFilesArtifactResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function serialize_api_container_api_RepartitionArgs(arg) {
|
|
196
|
+
if (!(arg instanceof api_container_service_pb.RepartitionArgs)) {
|
|
197
|
+
throw new Error('Expected argument of type api_container_api.RepartitionArgs');
|
|
198
|
+
}
|
|
199
|
+
return Buffer.from(arg.serializeBinary());
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function deserialize_api_container_api_RepartitionArgs(buffer_arg) {
|
|
203
|
+
return api_container_service_pb.RepartitionArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function serialize_api_container_api_StartServicesArgs(arg) {
|
|
207
|
+
if (!(arg instanceof api_container_service_pb.StartServicesArgs)) {
|
|
208
|
+
throw new Error('Expected argument of type api_container_api.StartServicesArgs');
|
|
209
|
+
}
|
|
210
|
+
return Buffer.from(arg.serializeBinary());
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function deserialize_api_container_api_StartServicesArgs(buffer_arg) {
|
|
214
|
+
return api_container_service_pb.StartServicesArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function serialize_api_container_api_StartServicesResponse(arg) {
|
|
218
|
+
if (!(arg instanceof api_container_service_pb.StartServicesResponse)) {
|
|
219
|
+
throw new Error('Expected argument of type api_container_api.StartServicesResponse');
|
|
220
|
+
}
|
|
221
|
+
return Buffer.from(arg.serializeBinary());
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
function deserialize_api_container_api_StartServicesResponse(buffer_arg) {
|
|
225
|
+
return api_container_service_pb.StartServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
function serialize_api_container_api_StoreFilesArtifactFromServiceArgs(arg) {
|
|
229
|
+
if (!(arg instanceof api_container_service_pb.StoreFilesArtifactFromServiceArgs)) {
|
|
230
|
+
throw new Error('Expected argument of type api_container_api.StoreFilesArtifactFromServiceArgs');
|
|
231
|
+
}
|
|
232
|
+
return Buffer.from(arg.serializeBinary());
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function deserialize_api_container_api_StoreFilesArtifactFromServiceArgs(buffer_arg) {
|
|
236
|
+
return api_container_service_pb.StoreFilesArtifactFromServiceArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
function serialize_api_container_api_StoreFilesArtifactFromServiceResponse(arg) {
|
|
240
|
+
if (!(arg instanceof api_container_service_pb.StoreFilesArtifactFromServiceResponse)) {
|
|
241
|
+
throw new Error('Expected argument of type api_container_api.StoreFilesArtifactFromServiceResponse');
|
|
242
|
+
}
|
|
243
|
+
return Buffer.from(arg.serializeBinary());
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
function deserialize_api_container_api_StoreFilesArtifactFromServiceResponse(buffer_arg) {
|
|
247
|
+
return api_container_service_pb.StoreFilesArtifactFromServiceResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function serialize_api_container_api_StoreWebFilesArtifactArgs(arg) {
|
|
251
|
+
if (!(arg instanceof api_container_service_pb.StoreWebFilesArtifactArgs)) {
|
|
252
|
+
throw new Error('Expected argument of type api_container_api.StoreWebFilesArtifactArgs');
|
|
253
|
+
}
|
|
254
|
+
return Buffer.from(arg.serializeBinary());
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function deserialize_api_container_api_StoreWebFilesArtifactArgs(buffer_arg) {
|
|
258
|
+
return api_container_service_pb.StoreWebFilesArtifactArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function serialize_api_container_api_StoreWebFilesArtifactResponse(arg) {
|
|
262
|
+
if (!(arg instanceof api_container_service_pb.StoreWebFilesArtifactResponse)) {
|
|
263
|
+
throw new Error('Expected argument of type api_container_api.StoreWebFilesArtifactResponse');
|
|
264
|
+
}
|
|
265
|
+
return Buffer.from(arg.serializeBinary());
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function deserialize_api_container_api_StoreWebFilesArtifactResponse(buffer_arg) {
|
|
269
|
+
return api_container_service_pb.StoreWebFilesArtifactResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
function serialize_api_container_api_UnloadModuleArgs(arg) {
|
|
273
|
+
if (!(arg instanceof api_container_service_pb.UnloadModuleArgs)) {
|
|
274
|
+
throw new Error('Expected argument of type api_container_api.UnloadModuleArgs');
|
|
275
|
+
}
|
|
276
|
+
return Buffer.from(arg.serializeBinary());
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function deserialize_api_container_api_UnloadModuleArgs(buffer_arg) {
|
|
280
|
+
return api_container_service_pb.UnloadModuleArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function serialize_api_container_api_UnloadModuleResponse(arg) {
|
|
284
|
+
if (!(arg instanceof api_container_service_pb.UnloadModuleResponse)) {
|
|
285
|
+
throw new Error('Expected argument of type api_container_api.UnloadModuleResponse');
|
|
286
|
+
}
|
|
287
|
+
return Buffer.from(arg.serializeBinary());
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function deserialize_api_container_api_UnloadModuleResponse(buffer_arg) {
|
|
291
|
+
return api_container_service_pb.UnloadModuleResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function serialize_api_container_api_UnpauseServiceArgs(arg) {
|
|
295
|
+
if (!(arg instanceof api_container_service_pb.UnpauseServiceArgs)) {
|
|
296
|
+
throw new Error('Expected argument of type api_container_api.UnpauseServiceArgs');
|
|
297
|
+
}
|
|
298
|
+
return Buffer.from(arg.serializeBinary());
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function deserialize_api_container_api_UnpauseServiceArgs(buffer_arg) {
|
|
302
|
+
return api_container_service_pb.UnpauseServiceArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function serialize_api_container_api_UploadFilesArtifactArgs(arg) {
|
|
306
|
+
if (!(arg instanceof api_container_service_pb.UploadFilesArtifactArgs)) {
|
|
307
|
+
throw new Error('Expected argument of type api_container_api.UploadFilesArtifactArgs');
|
|
308
|
+
}
|
|
309
|
+
return Buffer.from(arg.serializeBinary());
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function deserialize_api_container_api_UploadFilesArtifactArgs(buffer_arg) {
|
|
313
|
+
return api_container_service_pb.UploadFilesArtifactArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
function serialize_api_container_api_UploadFilesArtifactResponse(arg) {
|
|
317
|
+
if (!(arg instanceof api_container_service_pb.UploadFilesArtifactResponse)) {
|
|
318
|
+
throw new Error('Expected argument of type api_container_api.UploadFilesArtifactResponse');
|
|
319
|
+
}
|
|
320
|
+
return Buffer.from(arg.serializeBinary());
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
function deserialize_api_container_api_UploadFilesArtifactResponse(buffer_arg) {
|
|
324
|
+
return api_container_service_pb.UploadFilesArtifactResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
function serialize_api_container_api_WaitForHttpGetEndpointAvailabilityArgs(arg) {
|
|
328
|
+
if (!(arg instanceof api_container_service_pb.WaitForHttpGetEndpointAvailabilityArgs)) {
|
|
329
|
+
throw new Error('Expected argument of type api_container_api.WaitForHttpGetEndpointAvailabilityArgs');
|
|
330
|
+
}
|
|
331
|
+
return Buffer.from(arg.serializeBinary());
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function deserialize_api_container_api_WaitForHttpGetEndpointAvailabilityArgs(buffer_arg) {
|
|
335
|
+
return api_container_service_pb.WaitForHttpGetEndpointAvailabilityArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function serialize_api_container_api_WaitForHttpPostEndpointAvailabilityArgs(arg) {
|
|
339
|
+
if (!(arg instanceof api_container_service_pb.WaitForHttpPostEndpointAvailabilityArgs)) {
|
|
340
|
+
throw new Error('Expected argument of type api_container_api.WaitForHttpPostEndpointAvailabilityArgs');
|
|
341
|
+
}
|
|
342
|
+
return Buffer.from(arg.serializeBinary());
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function deserialize_api_container_api_WaitForHttpPostEndpointAvailabilityArgs(buffer_arg) {
|
|
346
|
+
return api_container_service_pb.WaitForHttpPostEndpointAvailabilityArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
function serialize_google_protobuf_Empty(arg) {
|
|
350
|
+
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
|
351
|
+
throw new Error('Expected argument of type google.protobuf.Empty');
|
|
352
|
+
}
|
|
353
|
+
return Buffer.from(arg.serializeBinary());
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
357
|
+
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
var ApiContainerServiceService = exports.ApiContainerServiceService = {
|
|
362
|
+
// Starts a module container in the enclave
|
|
363
|
+
loadModule: {
|
|
364
|
+
path: '/api_container_api.ApiContainerService/LoadModule',
|
|
365
|
+
requestStream: false,
|
|
366
|
+
responseStream: false,
|
|
367
|
+
requestType: api_container_service_pb.LoadModuleArgs,
|
|
368
|
+
responseType: api_container_service_pb.LoadModuleResponse,
|
|
369
|
+
requestSerialize: serialize_api_container_api_LoadModuleArgs,
|
|
370
|
+
requestDeserialize: deserialize_api_container_api_LoadModuleArgs,
|
|
371
|
+
responseSerialize: serialize_api_container_api_LoadModuleResponse,
|
|
372
|
+
responseDeserialize: deserialize_api_container_api_LoadModuleResponse,
|
|
373
|
+
},
|
|
374
|
+
// Gets information about loaded modules
|
|
375
|
+
getModules: {
|
|
376
|
+
path: '/api_container_api.ApiContainerService/GetModules',
|
|
377
|
+
requestStream: false,
|
|
378
|
+
responseStream: false,
|
|
379
|
+
requestType: api_container_service_pb.GetModulesArgs,
|
|
380
|
+
responseType: api_container_service_pb.GetModulesResponse,
|
|
381
|
+
requestSerialize: serialize_api_container_api_GetModulesArgs,
|
|
382
|
+
requestDeserialize: deserialize_api_container_api_GetModulesArgs,
|
|
383
|
+
responseSerialize: serialize_api_container_api_GetModulesResponse,
|
|
384
|
+
responseDeserialize: deserialize_api_container_api_GetModulesResponse,
|
|
385
|
+
},
|
|
386
|
+
// Stop and remove a module from the enclave
|
|
387
|
+
unloadModule: {
|
|
388
|
+
path: '/api_container_api.ApiContainerService/UnloadModule',
|
|
389
|
+
requestStream: false,
|
|
390
|
+
responseStream: false,
|
|
391
|
+
requestType: api_container_service_pb.UnloadModuleArgs,
|
|
392
|
+
responseType: api_container_service_pb.UnloadModuleResponse,
|
|
393
|
+
requestSerialize: serialize_api_container_api_UnloadModuleArgs,
|
|
394
|
+
requestDeserialize: deserialize_api_container_api_UnloadModuleArgs,
|
|
395
|
+
responseSerialize: serialize_api_container_api_UnloadModuleResponse,
|
|
396
|
+
responseDeserialize: deserialize_api_container_api_UnloadModuleResponse,
|
|
397
|
+
},
|
|
398
|
+
// Executes an executable module on the user's behalf
|
|
399
|
+
executeModule: {
|
|
400
|
+
path: '/api_container_api.ApiContainerService/ExecuteModule',
|
|
401
|
+
requestStream: false,
|
|
402
|
+
responseStream: false,
|
|
403
|
+
requestType: api_container_service_pb.ExecuteModuleArgs,
|
|
404
|
+
responseType: api_container_service_pb.ExecuteModuleResponse,
|
|
405
|
+
requestSerialize: serialize_api_container_api_ExecuteModuleArgs,
|
|
406
|
+
requestDeserialize: deserialize_api_container_api_ExecuteModuleArgs,
|
|
407
|
+
responseSerialize: serialize_api_container_api_ExecuteModuleResponse,
|
|
408
|
+
responseDeserialize: deserialize_api_container_api_ExecuteModuleResponse,
|
|
409
|
+
},
|
|
410
|
+
// Start services by creating containers for them
|
|
411
|
+
startServices: {
|
|
412
|
+
path: '/api_container_api.ApiContainerService/StartServices',
|
|
413
|
+
requestStream: false,
|
|
414
|
+
responseStream: false,
|
|
415
|
+
requestType: api_container_service_pb.StartServicesArgs,
|
|
416
|
+
responseType: api_container_service_pb.StartServicesResponse,
|
|
417
|
+
requestSerialize: serialize_api_container_api_StartServicesArgs,
|
|
418
|
+
requestDeserialize: deserialize_api_container_api_StartServicesArgs,
|
|
419
|
+
responseSerialize: serialize_api_container_api_StartServicesResponse,
|
|
420
|
+
responseDeserialize: deserialize_api_container_api_StartServicesResponse,
|
|
421
|
+
},
|
|
422
|
+
// Returns the IDs of the current services in the enclave
|
|
423
|
+
getServices: {
|
|
424
|
+
path: '/api_container_api.ApiContainerService/GetServices',
|
|
425
|
+
requestStream: false,
|
|
426
|
+
responseStream: false,
|
|
427
|
+
requestType: api_container_service_pb.GetServicesArgs,
|
|
428
|
+
responseType: api_container_service_pb.GetServicesResponse,
|
|
429
|
+
requestSerialize: serialize_api_container_api_GetServicesArgs,
|
|
430
|
+
requestDeserialize: deserialize_api_container_api_GetServicesArgs,
|
|
431
|
+
responseSerialize: serialize_api_container_api_GetServicesResponse,
|
|
432
|
+
responseDeserialize: deserialize_api_container_api_GetServicesResponse,
|
|
433
|
+
},
|
|
434
|
+
// Instructs the API container to remove the given service
|
|
435
|
+
removeService: {
|
|
436
|
+
path: '/api_container_api.ApiContainerService/RemoveService',
|
|
437
|
+
requestStream: false,
|
|
438
|
+
responseStream: false,
|
|
439
|
+
requestType: api_container_service_pb.RemoveServiceArgs,
|
|
440
|
+
responseType: api_container_service_pb.RemoveServiceResponse,
|
|
441
|
+
requestSerialize: serialize_api_container_api_RemoveServiceArgs,
|
|
442
|
+
requestDeserialize: deserialize_api_container_api_RemoveServiceArgs,
|
|
443
|
+
responseSerialize: serialize_api_container_api_RemoveServiceResponse,
|
|
444
|
+
responseDeserialize: deserialize_api_container_api_RemoveServiceResponse,
|
|
445
|
+
},
|
|
446
|
+
// Instructs the API container to repartition the enclave
|
|
447
|
+
repartition: {
|
|
448
|
+
path: '/api_container_api.ApiContainerService/Repartition',
|
|
449
|
+
requestStream: false,
|
|
450
|
+
responseStream: false,
|
|
451
|
+
requestType: api_container_service_pb.RepartitionArgs,
|
|
452
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
453
|
+
requestSerialize: serialize_api_container_api_RepartitionArgs,
|
|
454
|
+
requestDeserialize: deserialize_api_container_api_RepartitionArgs,
|
|
455
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
456
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
457
|
+
},
|
|
458
|
+
// Executes the given command inside a running container
|
|
459
|
+
execCommand: {
|
|
460
|
+
path: '/api_container_api.ApiContainerService/ExecCommand',
|
|
461
|
+
requestStream: false,
|
|
462
|
+
responseStream: false,
|
|
463
|
+
requestType: api_container_service_pb.ExecCommandArgs,
|
|
464
|
+
responseType: api_container_service_pb.ExecCommandResponse,
|
|
465
|
+
requestSerialize: serialize_api_container_api_ExecCommandArgs,
|
|
466
|
+
requestDeserialize: deserialize_api_container_api_ExecCommandArgs,
|
|
467
|
+
responseSerialize: serialize_api_container_api_ExecCommandResponse,
|
|
468
|
+
responseDeserialize: deserialize_api_container_api_ExecCommandResponse,
|
|
469
|
+
},
|
|
470
|
+
// Pauses all processes running in the service container
|
|
471
|
+
pauseService: {
|
|
472
|
+
path: '/api_container_api.ApiContainerService/PauseService',
|
|
473
|
+
requestStream: false,
|
|
474
|
+
responseStream: false,
|
|
475
|
+
requestType: api_container_service_pb.PauseServiceArgs,
|
|
476
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
477
|
+
requestSerialize: serialize_api_container_api_PauseServiceArgs,
|
|
478
|
+
requestDeserialize: deserialize_api_container_api_PauseServiceArgs,
|
|
479
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
480
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
481
|
+
},
|
|
482
|
+
// Unpauses all paused processes running in the service container
|
|
483
|
+
unpauseService: {
|
|
484
|
+
path: '/api_container_api.ApiContainerService/UnpauseService',
|
|
485
|
+
requestStream: false,
|
|
486
|
+
responseStream: false,
|
|
487
|
+
requestType: api_container_service_pb.UnpauseServiceArgs,
|
|
488
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
489
|
+
requestSerialize: serialize_api_container_api_UnpauseServiceArgs,
|
|
490
|
+
requestDeserialize: deserialize_api_container_api_UnpauseServiceArgs,
|
|
491
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
492
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
493
|
+
},
|
|
494
|
+
// Block until the given HTTP endpoint returns available, calling it through a HTTP Get request
|
|
495
|
+
waitForHttpGetEndpointAvailability: {
|
|
496
|
+
path: '/api_container_api.ApiContainerService/WaitForHttpGetEndpointAvailability',
|
|
497
|
+
requestStream: false,
|
|
498
|
+
responseStream: false,
|
|
499
|
+
requestType: api_container_service_pb.WaitForHttpGetEndpointAvailabilityArgs,
|
|
500
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
501
|
+
requestSerialize: serialize_api_container_api_WaitForHttpGetEndpointAvailabilityArgs,
|
|
502
|
+
requestDeserialize: deserialize_api_container_api_WaitForHttpGetEndpointAvailabilityArgs,
|
|
503
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
504
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
505
|
+
},
|
|
506
|
+
// Block until the given HTTP endpoint returns available, calling it through a HTTP Post request
|
|
507
|
+
waitForHttpPostEndpointAvailability: {
|
|
508
|
+
path: '/api_container_api.ApiContainerService/WaitForHttpPostEndpointAvailability',
|
|
509
|
+
requestStream: false,
|
|
510
|
+
responseStream: false,
|
|
511
|
+
requestType: api_container_service_pb.WaitForHttpPostEndpointAvailabilityArgs,
|
|
512
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
513
|
+
requestSerialize: serialize_api_container_api_WaitForHttpPostEndpointAvailabilityArgs,
|
|
514
|
+
requestDeserialize: deserialize_api_container_api_WaitForHttpPostEndpointAvailabilityArgs,
|
|
515
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
516
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
517
|
+
},
|
|
518
|
+
// Uploads a files artifact to the Kurtosis File System
|
|
519
|
+
uploadFilesArtifact: {
|
|
520
|
+
path: '/api_container_api.ApiContainerService/UploadFilesArtifact',
|
|
521
|
+
requestStream: false,
|
|
522
|
+
responseStream: false,
|
|
523
|
+
requestType: api_container_service_pb.UploadFilesArtifactArgs,
|
|
524
|
+
responseType: api_container_service_pb.UploadFilesArtifactResponse,
|
|
525
|
+
requestSerialize: serialize_api_container_api_UploadFilesArtifactArgs,
|
|
526
|
+
requestDeserialize: deserialize_api_container_api_UploadFilesArtifactArgs,
|
|
527
|
+
responseSerialize: serialize_api_container_api_UploadFilesArtifactResponse,
|
|
528
|
+
responseDeserialize: deserialize_api_container_api_UploadFilesArtifactResponse,
|
|
529
|
+
},
|
|
530
|
+
// TODO Make this a server-side streaming method so the client can download large files
|
|
531
|
+
// Downloads a files artifact from the Kurtosis File System
|
|
532
|
+
downloadFilesArtifact: {
|
|
533
|
+
path: '/api_container_api.ApiContainerService/DownloadFilesArtifact',
|
|
534
|
+
requestStream: false,
|
|
535
|
+
responseStream: false,
|
|
536
|
+
requestType: api_container_service_pb.DownloadFilesArtifactArgs,
|
|
537
|
+
responseType: api_container_service_pb.DownloadFilesArtifactResponse,
|
|
538
|
+
requestSerialize: serialize_api_container_api_DownloadFilesArtifactArgs,
|
|
539
|
+
requestDeserialize: deserialize_api_container_api_DownloadFilesArtifactArgs,
|
|
540
|
+
responseSerialize: serialize_api_container_api_DownloadFilesArtifactResponse,
|
|
541
|
+
responseDeserialize: deserialize_api_container_api_DownloadFilesArtifactResponse,
|
|
542
|
+
},
|
|
543
|
+
// Tells the API container to download a files artifact from the web to the Kurtosis File System
|
|
544
|
+
storeWebFilesArtifact: {
|
|
545
|
+
path: '/api_container_api.ApiContainerService/StoreWebFilesArtifact',
|
|
546
|
+
requestStream: false,
|
|
547
|
+
responseStream: false,
|
|
548
|
+
requestType: api_container_service_pb.StoreWebFilesArtifactArgs,
|
|
549
|
+
responseType: api_container_service_pb.StoreWebFilesArtifactResponse,
|
|
550
|
+
requestSerialize: serialize_api_container_api_StoreWebFilesArtifactArgs,
|
|
551
|
+
requestDeserialize: deserialize_api_container_api_StoreWebFilesArtifactArgs,
|
|
552
|
+
responseSerialize: serialize_api_container_api_StoreWebFilesArtifactResponse,
|
|
553
|
+
responseDeserialize: deserialize_api_container_api_StoreWebFilesArtifactResponse,
|
|
554
|
+
},
|
|
555
|
+
// Tells the API container to copy a files artifact from a service to the Kurtosis File System
|
|
556
|
+
storeFilesArtifactFromService: {
|
|
557
|
+
path: '/api_container_api.ApiContainerService/StoreFilesArtifactFromService',
|
|
558
|
+
requestStream: false,
|
|
559
|
+
responseStream: false,
|
|
560
|
+
requestType: api_container_service_pb.StoreFilesArtifactFromServiceArgs,
|
|
561
|
+
responseType: api_container_service_pb.StoreFilesArtifactFromServiceResponse,
|
|
562
|
+
requestSerialize: serialize_api_container_api_StoreFilesArtifactFromServiceArgs,
|
|
563
|
+
requestDeserialize: deserialize_api_container_api_StoreFilesArtifactFromServiceArgs,
|
|
564
|
+
responseSerialize: serialize_api_container_api_StoreFilesArtifactFromServiceResponse,
|
|
565
|
+
responseDeserialize: deserialize_api_container_api_StoreFilesArtifactFromServiceResponse,
|
|
566
|
+
},
|
|
567
|
+
// Renders the templates and their data to a files artifact in the Kurtosis File System
|
|
568
|
+
renderTemplatesToFilesArtifact: {
|
|
569
|
+
path: '/api_container_api.ApiContainerService/RenderTemplatesToFilesArtifact',
|
|
570
|
+
requestStream: false,
|
|
571
|
+
responseStream: false,
|
|
572
|
+
requestType: api_container_service_pb.RenderTemplatesToFilesArtifactArgs,
|
|
573
|
+
responseType: api_container_service_pb.RenderTemplatesToFilesArtifactResponse,
|
|
574
|
+
requestSerialize: serialize_api_container_api_RenderTemplatesToFilesArtifactArgs,
|
|
575
|
+
requestDeserialize: deserialize_api_container_api_RenderTemplatesToFilesArtifactArgs,
|
|
576
|
+
responseSerialize: serialize_api_container_api_RenderTemplatesToFilesArtifactResponse,
|
|
577
|
+
responseDeserialize: deserialize_api_container_api_RenderTemplatesToFilesArtifactResponse,
|
|
578
|
+
},
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
exports.ApiContainerServiceClient = grpc.makeGenericClientConstructor(ApiContainerServiceService);
|