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,324 @@
|
|
|
1
|
+
// source: executable_module_service.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = Function('return this')();
|
|
17
|
+
|
|
18
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
19
|
+
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
20
|
+
goog.exportSymbol('proto.module_api.ExecuteArgs', null, global);
|
|
21
|
+
goog.exportSymbol('proto.module_api.ExecuteResponse', null, global);
|
|
22
|
+
/**
|
|
23
|
+
* Generated by JsPbCodeGenerator.
|
|
24
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
25
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
26
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
27
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
28
|
+
* valid.
|
|
29
|
+
* @extends {jspb.Message}
|
|
30
|
+
* @constructor
|
|
31
|
+
*/
|
|
32
|
+
proto.module_api.ExecuteArgs = function(opt_data) {
|
|
33
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
34
|
+
};
|
|
35
|
+
goog.inherits(proto.module_api.ExecuteArgs, jspb.Message);
|
|
36
|
+
if (goog.DEBUG && !COMPILED) {
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
* @override
|
|
40
|
+
*/
|
|
41
|
+
proto.module_api.ExecuteArgs.displayName = 'proto.module_api.ExecuteArgs';
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Generated by JsPbCodeGenerator.
|
|
45
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
46
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
47
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
48
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
49
|
+
* valid.
|
|
50
|
+
* @extends {jspb.Message}
|
|
51
|
+
* @constructor
|
|
52
|
+
*/
|
|
53
|
+
proto.module_api.ExecuteResponse = function(opt_data) {
|
|
54
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
55
|
+
};
|
|
56
|
+
goog.inherits(proto.module_api.ExecuteResponse, jspb.Message);
|
|
57
|
+
if (goog.DEBUG && !COMPILED) {
|
|
58
|
+
/**
|
|
59
|
+
* @public
|
|
60
|
+
* @override
|
|
61
|
+
*/
|
|
62
|
+
proto.module_api.ExecuteResponse.displayName = 'proto.module_api.ExecuteResponse';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
68
|
+
/**
|
|
69
|
+
* Creates an object representation of this proto.
|
|
70
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
71
|
+
* Optional fields that are not set will be set to undefined.
|
|
72
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
73
|
+
* For the list of reserved names please see:
|
|
74
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
75
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
76
|
+
* JSPB instance for transitional soy proto support:
|
|
77
|
+
* http://goto/soy-param-migration
|
|
78
|
+
* @return {!Object}
|
|
79
|
+
*/
|
|
80
|
+
proto.module_api.ExecuteArgs.prototype.toObject = function(opt_includeInstance) {
|
|
81
|
+
return proto.module_api.ExecuteArgs.toObject(opt_includeInstance, this);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Static version of the {@see toObject} method.
|
|
87
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
88
|
+
* the JSPB instance for transitional soy proto support:
|
|
89
|
+
* http://goto/soy-param-migration
|
|
90
|
+
* @param {!proto.module_api.ExecuteArgs} msg The msg instance to transform.
|
|
91
|
+
* @return {!Object}
|
|
92
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
93
|
+
*/
|
|
94
|
+
proto.module_api.ExecuteArgs.toObject = function(includeInstance, msg) {
|
|
95
|
+
var f, obj = {
|
|
96
|
+
paramsJson: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
if (includeInstance) {
|
|
100
|
+
obj.$jspbMessageInstance = msg;
|
|
101
|
+
}
|
|
102
|
+
return obj;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Deserializes binary data (in protobuf wire format).
|
|
109
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
110
|
+
* @return {!proto.module_api.ExecuteArgs}
|
|
111
|
+
*/
|
|
112
|
+
proto.module_api.ExecuteArgs.deserializeBinary = function(bytes) {
|
|
113
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
114
|
+
var msg = new proto.module_api.ExecuteArgs;
|
|
115
|
+
return proto.module_api.ExecuteArgs.deserializeBinaryFromReader(msg, reader);
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
121
|
+
* given reader into the given message object.
|
|
122
|
+
* @param {!proto.module_api.ExecuteArgs} msg The message object to deserialize into.
|
|
123
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
124
|
+
* @return {!proto.module_api.ExecuteArgs}
|
|
125
|
+
*/
|
|
126
|
+
proto.module_api.ExecuteArgs.deserializeBinaryFromReader = function(msg, reader) {
|
|
127
|
+
while (reader.nextField()) {
|
|
128
|
+
if (reader.isEndGroup()) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
var field = reader.getFieldNumber();
|
|
132
|
+
switch (field) {
|
|
133
|
+
case 1:
|
|
134
|
+
var value = /** @type {string} */ (reader.readString());
|
|
135
|
+
msg.setParamsJson(value);
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
reader.skipField();
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
return msg;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
148
|
+
* @return {!Uint8Array}
|
|
149
|
+
*/
|
|
150
|
+
proto.module_api.ExecuteArgs.prototype.serializeBinary = function() {
|
|
151
|
+
var writer = new jspb.BinaryWriter();
|
|
152
|
+
proto.module_api.ExecuteArgs.serializeBinaryToWriter(this, writer);
|
|
153
|
+
return writer.getResultBuffer();
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
159
|
+
* format), writing to the given BinaryWriter.
|
|
160
|
+
* @param {!proto.module_api.ExecuteArgs} message
|
|
161
|
+
* @param {!jspb.BinaryWriter} writer
|
|
162
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
163
|
+
*/
|
|
164
|
+
proto.module_api.ExecuteArgs.serializeBinaryToWriter = function(message, writer) {
|
|
165
|
+
var f = undefined;
|
|
166
|
+
f = message.getParamsJson();
|
|
167
|
+
if (f.length > 0) {
|
|
168
|
+
writer.writeString(
|
|
169
|
+
1,
|
|
170
|
+
f
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* optional string params_json = 1;
|
|
178
|
+
* @return {string}
|
|
179
|
+
*/
|
|
180
|
+
proto.module_api.ExecuteArgs.prototype.getParamsJson = function() {
|
|
181
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @param {string} value
|
|
187
|
+
* @return {!proto.module_api.ExecuteArgs} returns this
|
|
188
|
+
*/
|
|
189
|
+
proto.module_api.ExecuteArgs.prototype.setParamsJson = function(value) {
|
|
190
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
198
|
+
/**
|
|
199
|
+
* Creates an object representation of this proto.
|
|
200
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
201
|
+
* Optional fields that are not set will be set to undefined.
|
|
202
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
203
|
+
* For the list of reserved names please see:
|
|
204
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
205
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
206
|
+
* JSPB instance for transitional soy proto support:
|
|
207
|
+
* http://goto/soy-param-migration
|
|
208
|
+
* @return {!Object}
|
|
209
|
+
*/
|
|
210
|
+
proto.module_api.ExecuteResponse.prototype.toObject = function(opt_includeInstance) {
|
|
211
|
+
return proto.module_api.ExecuteResponse.toObject(opt_includeInstance, this);
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Static version of the {@see toObject} method.
|
|
217
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
218
|
+
* the JSPB instance for transitional soy proto support:
|
|
219
|
+
* http://goto/soy-param-migration
|
|
220
|
+
* @param {!proto.module_api.ExecuteResponse} msg The msg instance to transform.
|
|
221
|
+
* @return {!Object}
|
|
222
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
223
|
+
*/
|
|
224
|
+
proto.module_api.ExecuteResponse.toObject = function(includeInstance, msg) {
|
|
225
|
+
var f, obj = {
|
|
226
|
+
responseJson: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
if (includeInstance) {
|
|
230
|
+
obj.$jspbMessageInstance = msg;
|
|
231
|
+
}
|
|
232
|
+
return obj;
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Deserializes binary data (in protobuf wire format).
|
|
239
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
240
|
+
* @return {!proto.module_api.ExecuteResponse}
|
|
241
|
+
*/
|
|
242
|
+
proto.module_api.ExecuteResponse.deserializeBinary = function(bytes) {
|
|
243
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
244
|
+
var msg = new proto.module_api.ExecuteResponse;
|
|
245
|
+
return proto.module_api.ExecuteResponse.deserializeBinaryFromReader(msg, reader);
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
251
|
+
* given reader into the given message object.
|
|
252
|
+
* @param {!proto.module_api.ExecuteResponse} msg The message object to deserialize into.
|
|
253
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
254
|
+
* @return {!proto.module_api.ExecuteResponse}
|
|
255
|
+
*/
|
|
256
|
+
proto.module_api.ExecuteResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
257
|
+
while (reader.nextField()) {
|
|
258
|
+
if (reader.isEndGroup()) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
var field = reader.getFieldNumber();
|
|
262
|
+
switch (field) {
|
|
263
|
+
case 1:
|
|
264
|
+
var value = /** @type {string} */ (reader.readString());
|
|
265
|
+
msg.setResponseJson(value);
|
|
266
|
+
break;
|
|
267
|
+
default:
|
|
268
|
+
reader.skipField();
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return msg;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
278
|
+
* @return {!Uint8Array}
|
|
279
|
+
*/
|
|
280
|
+
proto.module_api.ExecuteResponse.prototype.serializeBinary = function() {
|
|
281
|
+
var writer = new jspb.BinaryWriter();
|
|
282
|
+
proto.module_api.ExecuteResponse.serializeBinaryToWriter(this, writer);
|
|
283
|
+
return writer.getResultBuffer();
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
289
|
+
* format), writing to the given BinaryWriter.
|
|
290
|
+
* @param {!proto.module_api.ExecuteResponse} message
|
|
291
|
+
* @param {!jspb.BinaryWriter} writer
|
|
292
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
293
|
+
*/
|
|
294
|
+
proto.module_api.ExecuteResponse.serializeBinaryToWriter = function(message, writer) {
|
|
295
|
+
var f = undefined;
|
|
296
|
+
f = message.getResponseJson();
|
|
297
|
+
if (f.length > 0) {
|
|
298
|
+
writer.writeString(
|
|
299
|
+
1,
|
|
300
|
+
f
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* optional string response_json = 1;
|
|
308
|
+
* @return {string}
|
|
309
|
+
*/
|
|
310
|
+
proto.module_api.ExecuteResponse.prototype.getResponseJson = function() {
|
|
311
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @param {string} value
|
|
317
|
+
* @return {!proto.module_api.ExecuteResponse} returns this
|
|
318
|
+
*/
|
|
319
|
+
proto.module_api.ExecuteResponse.prototype.setResponseJson = function(value) {
|
|
320
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
goog.object.extend(exports, proto.module_api);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ExecCommandArgs, GetServicesArgs, PartitionServices, PartitionConnections, PartitionConnectionInfo, RemoveServiceArgs, RepartitionArgs, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs, LoadModuleArgs, UnloadModuleArgs, ExecuteModuleArgs, GetModulesArgs, Port, StoreWebFilesArtifactArgs, StoreFilesArtifactFromServiceArgs, UploadFilesArtifactArgs, PauseServiceArgs, UnpauseServiceArgs, ModuleInfo, ServiceInfo, ServiceConfig, RemoveServiceResponse, UnloadModuleResponse, GetModulesResponse, GetServicesResponse, StartServicesArgs, RenderTemplatesToFilesArtifactArgs } from '../kurtosis_core_rpc_api_bindings/api_container_service_pb';
|
|
2
|
+
import { ServiceID } from './services/service';
|
|
3
|
+
import { ModuleID } from "./modules/module_context";
|
|
4
|
+
import TemplateAndData = RenderTemplatesToFilesArtifactArgs.TemplateAndData;
|
|
5
|
+
export declare function newPort(number: number, protocol: Port.Protocol): Port;
|
|
6
|
+
export declare function newServiceConfig(containerImageName: string, privatePorts: Map<string, Port>, publicPorts: Map<string, Port>, entrypointOverrideArgs: string[], cmdOverrideArgs: string[], environmentVariableOverrides: Map<string, string>, filesArtifactMountDirpaths: Map<string, string>, cpuAllocationMillicpus: number, memoryAllocationMegabytes: number, privateIPAddrPlaceholder: string): ServiceConfig;
|
|
7
|
+
export declare function newLoadModuleArgs(moduleId: ModuleID, image: string, serializedParams: string): LoadModuleArgs;
|
|
8
|
+
export declare function newUnloadModuleArgs(moduleId: ModuleID): UnloadModuleArgs;
|
|
9
|
+
export declare function newUnloadModuleResponse(moduleGuid: string): UnloadModuleResponse;
|
|
10
|
+
export declare function newExecuteModuleArgs(moduleId: ModuleID, serializedParams: string): ExecuteModuleArgs;
|
|
11
|
+
export declare function newGetModulesArgs(moduleIds: Map<string, boolean>): GetModulesArgs;
|
|
12
|
+
export declare function newGetModulesResponse(moduleInfoMap: Map<string, ModuleInfo>): GetModulesResponse;
|
|
13
|
+
export declare function newModuleInfo(guid: string, privateIpAddr: string, privateGrpcPort: Port, maybePublicIpAddr: string, maybePublicGrpcPort: Port): ModuleInfo;
|
|
14
|
+
export declare function newStartServicesArgs(serviceConfigs: Map<ServiceID, ServiceConfig>, partitionID: string): StartServicesArgs;
|
|
15
|
+
export declare function newGetServicesArgs(serviceIds: Map<string, boolean>): GetServicesArgs;
|
|
16
|
+
export declare function newGetServicesResponse(serviceInfoMap: Map<string, ServiceInfo>): GetServicesResponse;
|
|
17
|
+
export declare function newServiceInfo(serviceGuid: string, privateIpAddr: string, privatePorts: Map<string, Port>, maybePublicIpAddr: string, maybePublicPorts: Map<string, Port>): ServiceInfo;
|
|
18
|
+
export declare function newRemoveServiceArgs(serviceId: ServiceID): RemoveServiceArgs;
|
|
19
|
+
export declare function newRemoveServiceResponse(serviceGuid: string): RemoveServiceResponse;
|
|
20
|
+
export declare function newRepartitionArgs(partitionServices: Map<string, PartitionServices>, partitionConns: Map<string, PartitionConnections>, defaultConnection: PartitionConnectionInfo): RepartitionArgs;
|
|
21
|
+
export declare function newPartitionServices(serviceIdStrSet: Set<string>): PartitionServices;
|
|
22
|
+
export declare function newPartitionConnections(allConnectionInfo: Map<string, PartitionConnectionInfo>): PartitionConnections;
|
|
23
|
+
export declare function newPartitionConnectionInfo(packetLossPercentage: number): PartitionConnectionInfo;
|
|
24
|
+
export declare function newExecCommandArgs(serviceId: ServiceID, command: string[]): ExecCommandArgs;
|
|
25
|
+
export declare function newPauseServiceArgs(serviceId: ServiceID): PauseServiceArgs;
|
|
26
|
+
export declare function newUnpauseServiceArgs(serviceId: ServiceID): UnpauseServiceArgs;
|
|
27
|
+
export declare function newWaitForHttpGetEndpointAvailabilityArgs(serviceId: ServiceID, port: number, path: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): WaitForHttpGetEndpointAvailabilityArgs;
|
|
28
|
+
export declare function newWaitForHttpPostEndpointAvailabilityArgs(serviceId: ServiceID, port: number, path: string, requestBody: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): WaitForHttpPostEndpointAvailabilityArgs;
|
|
29
|
+
export declare function newStoreWebFilesArtifactArgs(url: string): StoreWebFilesArtifactArgs;
|
|
30
|
+
export declare function newStoreFilesArtifactFromServiceArgs(serviceId: string, sourcePath: string): StoreFilesArtifactFromServiceArgs;
|
|
31
|
+
export declare function newUploadFilesArtifactArgs(data: Uint8Array): UploadFilesArtifactArgs;
|
|
32
|
+
export declare function newTemplateAndData(template: string, templateData: string): TemplateAndData;
|
|
33
|
+
export declare function newRenderTemplatesToFilesArtifactArgs(): RenderTemplatesToFilesArtifactArgs;
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2022 - present Kurtosis Technologies Inc.
|
|
4
|
+
* All Rights Reserved.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.newRenderTemplatesToFilesArtifactArgs = exports.newTemplateAndData = exports.newUploadFilesArtifactArgs = exports.newStoreFilesArtifactFromServiceArgs = exports.newStoreWebFilesArtifactArgs = exports.newWaitForHttpPostEndpointAvailabilityArgs = exports.newWaitForHttpGetEndpointAvailabilityArgs = exports.newUnpauseServiceArgs = exports.newPauseServiceArgs = exports.newExecCommandArgs = exports.newPartitionConnectionInfo = exports.newPartitionConnections = exports.newPartitionServices = exports.newRepartitionArgs = exports.newRemoveServiceResponse = exports.newRemoveServiceArgs = exports.newServiceInfo = exports.newGetServicesResponse = exports.newGetServicesArgs = exports.newStartServicesArgs = exports.newModuleInfo = exports.newGetModulesResponse = exports.newGetModulesArgs = exports.newExecuteModuleArgs = exports.newUnloadModuleResponse = exports.newUnloadModuleArgs = exports.newLoadModuleArgs = exports.newServiceConfig = exports.newPort = void 0;
|
|
8
|
+
const api_container_service_pb_1 = require("../kurtosis_core_rpc_api_bindings/api_container_service_pb");
|
|
9
|
+
var TemplateAndData = api_container_service_pb_1.RenderTemplatesToFilesArtifactArgs.TemplateAndData;
|
|
10
|
+
// ==============================================================================================
|
|
11
|
+
// Shared Objects (Used By Multiple Endpoints)
|
|
12
|
+
// ==============================================================================================
|
|
13
|
+
function newPort(number, protocol) {
|
|
14
|
+
const result = new api_container_service_pb_1.Port();
|
|
15
|
+
result.setNumber(number);
|
|
16
|
+
result.setProtocol(protocol);
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
exports.newPort = newPort;
|
|
20
|
+
function newServiceConfig(containerImageName, privatePorts, publicPorts, entrypointOverrideArgs, cmdOverrideArgs, environmentVariableOverrides, filesArtifactMountDirpaths, cpuAllocationMillicpus, memoryAllocationMegabytes, privateIPAddrPlaceholder) {
|
|
21
|
+
const result = new api_container_service_pb_1.ServiceConfig();
|
|
22
|
+
result.setContainerImageName(containerImageName);
|
|
23
|
+
const usedPortsMap = result.getPrivatePortsMap();
|
|
24
|
+
for (const [portId, portSpec] of privatePorts) {
|
|
25
|
+
usedPortsMap.set(portId, portSpec);
|
|
26
|
+
}
|
|
27
|
+
//TODO this is a huge hack to temporarily enable static ports for NEAR until we have a more productized solution
|
|
28
|
+
const publicPortsMap = result.getPublicPortsMap();
|
|
29
|
+
for (const [portId, portSpec] of publicPorts) {
|
|
30
|
+
publicPortsMap.set(portId, portSpec);
|
|
31
|
+
}
|
|
32
|
+
//TODO finish the hack
|
|
33
|
+
const entrypointArgsArray = result.getEntrypointArgsList();
|
|
34
|
+
for (const entryPoint of entrypointOverrideArgs) {
|
|
35
|
+
entrypointArgsArray.push(entryPoint);
|
|
36
|
+
}
|
|
37
|
+
const cmdArgsArray = result.getCmdArgsList();
|
|
38
|
+
for (const cmdArg of cmdOverrideArgs) {
|
|
39
|
+
cmdArgsArray.push(cmdArg);
|
|
40
|
+
}
|
|
41
|
+
const envVarArray = result.getEnvVarsMap();
|
|
42
|
+
for (const [name, value] of environmentVariableOverrides) {
|
|
43
|
+
envVarArray.set(name, value);
|
|
44
|
+
}
|
|
45
|
+
const filesArtifactMountDirpathsMap = result.getFilesArtifactMountpointsMap();
|
|
46
|
+
for (const [artifactId, mountDirpath] of filesArtifactMountDirpaths) {
|
|
47
|
+
filesArtifactMountDirpathsMap.set(artifactId, mountDirpath);
|
|
48
|
+
}
|
|
49
|
+
result.setCpuAllocationMillicpus(cpuAllocationMillicpus);
|
|
50
|
+
result.setMemoryAllocationMegabytes(memoryAllocationMegabytes);
|
|
51
|
+
result.setPrivateIpAddrPlaceholder(privateIPAddrPlaceholder);
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
54
|
+
exports.newServiceConfig = newServiceConfig;
|
|
55
|
+
// ==============================================================================================
|
|
56
|
+
// Load Module
|
|
57
|
+
// ==============================================================================================
|
|
58
|
+
function newLoadModuleArgs(moduleId, image, serializedParams) {
|
|
59
|
+
const result = new api_container_service_pb_1.LoadModuleArgs();
|
|
60
|
+
result.setModuleId(String(moduleId));
|
|
61
|
+
result.setContainerImage(image);
|
|
62
|
+
result.setSerializedParams(serializedParams);
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
exports.newLoadModuleArgs = newLoadModuleArgs;
|
|
66
|
+
// ==============================================================================================
|
|
67
|
+
// Unload Module
|
|
68
|
+
// ==============================================================================================
|
|
69
|
+
function newUnloadModuleArgs(moduleId) {
|
|
70
|
+
const result = new api_container_service_pb_1.UnloadModuleArgs();
|
|
71
|
+
result.setModuleId(String(moduleId));
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
exports.newUnloadModuleArgs = newUnloadModuleArgs;
|
|
75
|
+
function newUnloadModuleResponse(moduleGuid) {
|
|
76
|
+
const result = new api_container_service_pb_1.UnloadModuleResponse();
|
|
77
|
+
result.setModuleGuid(moduleGuid);
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
exports.newUnloadModuleResponse = newUnloadModuleResponse;
|
|
81
|
+
// ==============================================================================================
|
|
82
|
+
// Execute Module
|
|
83
|
+
// ==============================================================================================
|
|
84
|
+
function newExecuteModuleArgs(moduleId, serializedParams) {
|
|
85
|
+
const result = new api_container_service_pb_1.ExecuteModuleArgs();
|
|
86
|
+
result.setModuleId(String(moduleId));
|
|
87
|
+
result.setSerializedParams(serializedParams);
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
exports.newExecuteModuleArgs = newExecuteModuleArgs;
|
|
91
|
+
// ==============================================================================================
|
|
92
|
+
// Get Modules
|
|
93
|
+
// ==============================================================================================
|
|
94
|
+
function newGetModulesArgs(moduleIds) {
|
|
95
|
+
const result = new api_container_service_pb_1.GetModulesArgs();
|
|
96
|
+
const moduleMap = result.getIdsMap();
|
|
97
|
+
for (const [moduleId, isModuleIncluded] of moduleIds) {
|
|
98
|
+
moduleMap.set(moduleId, isModuleIncluded);
|
|
99
|
+
}
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
exports.newGetModulesArgs = newGetModulesArgs;
|
|
103
|
+
function newGetModulesResponse(moduleInfoMap) {
|
|
104
|
+
const result = new api_container_service_pb_1.GetModulesResponse();
|
|
105
|
+
const resultModuleInfoMap = result.getModuleInfoMap();
|
|
106
|
+
for (const [moduleId, moduleInfo] of moduleInfoMap) {
|
|
107
|
+
resultModuleInfoMap.set(moduleId, moduleInfo);
|
|
108
|
+
}
|
|
109
|
+
return result;
|
|
110
|
+
}
|
|
111
|
+
exports.newGetModulesResponse = newGetModulesResponse;
|
|
112
|
+
function newModuleInfo(guid, privateIpAddr, privateGrpcPort, maybePublicIpAddr, maybePublicGrpcPort) {
|
|
113
|
+
const result = new api_container_service_pb_1.ModuleInfo();
|
|
114
|
+
result.setGuid(guid);
|
|
115
|
+
result.setPrivateIpAddr(privateIpAddr);
|
|
116
|
+
result.setPrivateGrpcPort(privateGrpcPort);
|
|
117
|
+
result.setMaybePublicIpAddr(maybePublicIpAddr);
|
|
118
|
+
result.setMaybePublicGrpcPort(maybePublicGrpcPort);
|
|
119
|
+
return result;
|
|
120
|
+
}
|
|
121
|
+
exports.newModuleInfo = newModuleInfo;
|
|
122
|
+
// ==============================================================================================
|
|
123
|
+
// Start Service
|
|
124
|
+
// ==============================================================================================
|
|
125
|
+
function newStartServicesArgs(serviceConfigs, partitionID) {
|
|
126
|
+
const result = new api_container_service_pb_1.StartServicesArgs();
|
|
127
|
+
const serviceIdsToConfigs = result.getServiceIdsToConfigsMap();
|
|
128
|
+
for (const [serviceId, serviceConfig] of serviceConfigs) {
|
|
129
|
+
serviceIdsToConfigs.set(String(serviceId), serviceConfig);
|
|
130
|
+
}
|
|
131
|
+
result.setPartitionId(partitionID);
|
|
132
|
+
return result;
|
|
133
|
+
}
|
|
134
|
+
exports.newStartServicesArgs = newStartServicesArgs;
|
|
135
|
+
// ==============================================================================================
|
|
136
|
+
// Get Services
|
|
137
|
+
// ==============================================================================================
|
|
138
|
+
function newGetServicesArgs(serviceIds) {
|
|
139
|
+
const result = new api_container_service_pb_1.GetServicesArgs();
|
|
140
|
+
const resultServiceIdMap = result.getServiceIdsMap();
|
|
141
|
+
for (const [serviceId, booleanVal] of serviceIds) {
|
|
142
|
+
resultServiceIdMap.set(serviceId, booleanVal);
|
|
143
|
+
}
|
|
144
|
+
return result;
|
|
145
|
+
}
|
|
146
|
+
exports.newGetServicesArgs = newGetServicesArgs;
|
|
147
|
+
function newGetServicesResponse(serviceInfoMap) {
|
|
148
|
+
const result = new api_container_service_pb_1.GetServicesResponse();
|
|
149
|
+
const resultServiceMap = result.getServiceInfoMap();
|
|
150
|
+
for (const [serviceId, serviceInfo] of serviceInfoMap) {
|
|
151
|
+
resultServiceMap.set(serviceId, serviceInfo);
|
|
152
|
+
}
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
155
|
+
exports.newGetServicesResponse = newGetServicesResponse;
|
|
156
|
+
function newServiceInfo(serviceGuid, privateIpAddr, privatePorts, maybePublicIpAddr, maybePublicPorts) {
|
|
157
|
+
const result = new api_container_service_pb_1.ServiceInfo();
|
|
158
|
+
result.setServiceGuid(serviceGuid);
|
|
159
|
+
result.setMaybePublicIpAddr(maybePublicIpAddr);
|
|
160
|
+
result.setPrivateIpAddr(privateIpAddr);
|
|
161
|
+
const privatePortsMap = result.getPrivatePortsMap();
|
|
162
|
+
for (const [portName, privatePort] of privatePorts.entries()) {
|
|
163
|
+
privatePortsMap.set(portName, privatePort);
|
|
164
|
+
}
|
|
165
|
+
const maybePublicPortsMap = result.getMaybePublicPortsMap();
|
|
166
|
+
for (const [portName, publicPort] of maybePublicPorts.entries()) {
|
|
167
|
+
maybePublicPortsMap.set(portName, publicPort);
|
|
168
|
+
}
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
exports.newServiceInfo = newServiceInfo;
|
|
172
|
+
// ==============================================================================================
|
|
173
|
+
// Remove Service
|
|
174
|
+
// ==============================================================================================
|
|
175
|
+
function newRemoveServiceArgs(serviceId) {
|
|
176
|
+
const result = new api_container_service_pb_1.RemoveServiceArgs();
|
|
177
|
+
result.setServiceId(serviceId);
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
exports.newRemoveServiceArgs = newRemoveServiceArgs;
|
|
181
|
+
function newRemoveServiceResponse(serviceGuid) {
|
|
182
|
+
const result = new api_container_service_pb_1.RemoveServiceResponse();
|
|
183
|
+
result.setServiceGuid(serviceGuid);
|
|
184
|
+
return result;
|
|
185
|
+
}
|
|
186
|
+
exports.newRemoveServiceResponse = newRemoveServiceResponse;
|
|
187
|
+
// ==============================================================================================
|
|
188
|
+
// Repartition
|
|
189
|
+
// ==============================================================================================
|
|
190
|
+
function newRepartitionArgs(partitionServices, partitionConns, defaultConnection) {
|
|
191
|
+
const result = new api_container_service_pb_1.RepartitionArgs();
|
|
192
|
+
const partitionServicesMap = result.getPartitionServicesMap();
|
|
193
|
+
for (const [partitionServiceId, partitionId] of partitionServices.entries()) {
|
|
194
|
+
partitionServicesMap.set(partitionServiceId, partitionId);
|
|
195
|
+
}
|
|
196
|
+
;
|
|
197
|
+
const partitionConnsMap = result.getPartitionConnectionsMap();
|
|
198
|
+
for (const [partitionConnId, partitionConn] of partitionConns.entries()) {
|
|
199
|
+
partitionConnsMap.set(partitionConnId, partitionConn);
|
|
200
|
+
}
|
|
201
|
+
;
|
|
202
|
+
result.setDefaultConnection(defaultConnection);
|
|
203
|
+
return result;
|
|
204
|
+
}
|
|
205
|
+
exports.newRepartitionArgs = newRepartitionArgs;
|
|
206
|
+
function newPartitionServices(serviceIdStrSet) {
|
|
207
|
+
const result = new api_container_service_pb_1.PartitionServices();
|
|
208
|
+
const partitionServicesMap = result.getServiceIdSetMap();
|
|
209
|
+
for (const serviceIdStr of serviceIdStrSet) {
|
|
210
|
+
partitionServicesMap.set(serviceIdStr, true);
|
|
211
|
+
}
|
|
212
|
+
return result;
|
|
213
|
+
}
|
|
214
|
+
exports.newPartitionServices = newPartitionServices;
|
|
215
|
+
function newPartitionConnections(allConnectionInfo) {
|
|
216
|
+
const result = new api_container_service_pb_1.PartitionConnections();
|
|
217
|
+
const partitionsMap = result.getConnectionInfoMap();
|
|
218
|
+
for (const [partitionId, connectionInfo] of allConnectionInfo.entries()) {
|
|
219
|
+
partitionsMap.set(partitionId, connectionInfo);
|
|
220
|
+
}
|
|
221
|
+
return result;
|
|
222
|
+
}
|
|
223
|
+
exports.newPartitionConnections = newPartitionConnections;
|
|
224
|
+
function newPartitionConnectionInfo(packetLossPercentage) {
|
|
225
|
+
const partitionConnectionInfo = new api_container_service_pb_1.PartitionConnectionInfo();
|
|
226
|
+
partitionConnectionInfo.setPacketLossPercentage(packetLossPercentage);
|
|
227
|
+
return partitionConnectionInfo;
|
|
228
|
+
}
|
|
229
|
+
exports.newPartitionConnectionInfo = newPartitionConnectionInfo;
|
|
230
|
+
// ==============================================================================================
|
|
231
|
+
// Exec Command
|
|
232
|
+
// ==============================================================================================
|
|
233
|
+
function newExecCommandArgs(serviceId, command) {
|
|
234
|
+
const result = new api_container_service_pb_1.ExecCommandArgs();
|
|
235
|
+
result.setServiceId(serviceId);
|
|
236
|
+
result.setCommandArgsList(command);
|
|
237
|
+
return result;
|
|
238
|
+
}
|
|
239
|
+
exports.newExecCommandArgs = newExecCommandArgs;
|
|
240
|
+
// ==============================================================================================
|
|
241
|
+
// Pause/Unpause Service
|
|
242
|
+
// ==============================================================================================
|
|
243
|
+
function newPauseServiceArgs(serviceId) {
|
|
244
|
+
const result = new api_container_service_pb_1.PauseServiceArgs();
|
|
245
|
+
result.setServiceId(serviceId);
|
|
246
|
+
return result;
|
|
247
|
+
}
|
|
248
|
+
exports.newPauseServiceArgs = newPauseServiceArgs;
|
|
249
|
+
function newUnpauseServiceArgs(serviceId) {
|
|
250
|
+
const result = new api_container_service_pb_1.UnpauseServiceArgs();
|
|
251
|
+
result.setServiceId(serviceId);
|
|
252
|
+
return result;
|
|
253
|
+
}
|
|
254
|
+
exports.newUnpauseServiceArgs = newUnpauseServiceArgs;
|
|
255
|
+
// ==============================================================================================
|
|
256
|
+
// Wait For Http Get Endpoint Availability
|
|
257
|
+
// ==============================================================================================
|
|
258
|
+
function newWaitForHttpGetEndpointAvailabilityArgs(serviceId, port, path, initialDelayMilliseconds, retries, retriesDelayMilliseconds, bodyText) {
|
|
259
|
+
const result = new api_container_service_pb_1.WaitForHttpGetEndpointAvailabilityArgs();
|
|
260
|
+
result.setServiceId(String(serviceId));
|
|
261
|
+
result.setPort(port);
|
|
262
|
+
result.setPath(path);
|
|
263
|
+
result.setInitialDelayMilliseconds(initialDelayMilliseconds);
|
|
264
|
+
result.setRetries(retries);
|
|
265
|
+
result.setRetriesDelayMilliseconds(retriesDelayMilliseconds);
|
|
266
|
+
result.setBodyText(bodyText);
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
exports.newWaitForHttpGetEndpointAvailabilityArgs = newWaitForHttpGetEndpointAvailabilityArgs;
|
|
270
|
+
// ==============================================================================================
|
|
271
|
+
// Wait For Http Post Endpoint Availability
|
|
272
|
+
// ==============================================================================================
|
|
273
|
+
function newWaitForHttpPostEndpointAvailabilityArgs(serviceId, port, path, requestBody, initialDelayMilliseconds, retries, retriesDelayMilliseconds, bodyText) {
|
|
274
|
+
const result = new api_container_service_pb_1.WaitForHttpPostEndpointAvailabilityArgs();
|
|
275
|
+
result.setServiceId(String(serviceId));
|
|
276
|
+
result.setPort(port);
|
|
277
|
+
result.setPath(path);
|
|
278
|
+
result.setRequestBody(requestBody);
|
|
279
|
+
result.setInitialDelayMilliseconds(initialDelayMilliseconds);
|
|
280
|
+
result.setRetries(retries);
|
|
281
|
+
result.setRetriesDelayMilliseconds(retriesDelayMilliseconds);
|
|
282
|
+
result.setBodyText(bodyText);
|
|
283
|
+
return result;
|
|
284
|
+
}
|
|
285
|
+
exports.newWaitForHttpPostEndpointAvailabilityArgs = newWaitForHttpPostEndpointAvailabilityArgs;
|
|
286
|
+
// ==============================================================================================
|
|
287
|
+
// Download Files
|
|
288
|
+
// ==============================================================================================
|
|
289
|
+
function newStoreWebFilesArtifactArgs(url) {
|
|
290
|
+
const result = new api_container_service_pb_1.StoreWebFilesArtifactArgs();
|
|
291
|
+
result.setUrl(url);
|
|
292
|
+
return result;
|
|
293
|
+
}
|
|
294
|
+
exports.newStoreWebFilesArtifactArgs = newStoreWebFilesArtifactArgs;
|
|
295
|
+
// ==============================================================================================
|
|
296
|
+
// Store Files Artifact From Service
|
|
297
|
+
// ==============================================================================================
|
|
298
|
+
function newStoreFilesArtifactFromServiceArgs(serviceId, sourcePath) {
|
|
299
|
+
const result = new api_container_service_pb_1.StoreFilesArtifactFromServiceArgs();
|
|
300
|
+
result.setServiceId(serviceId);
|
|
301
|
+
result.setSourcePath(sourcePath);
|
|
302
|
+
return result;
|
|
303
|
+
}
|
|
304
|
+
exports.newStoreFilesArtifactFromServiceArgs = newStoreFilesArtifactFromServiceArgs;
|
|
305
|
+
// ==============================================================================================
|
|
306
|
+
// Upload Files
|
|
307
|
+
// ==============================================================================================
|
|
308
|
+
function newUploadFilesArtifactArgs(data) {
|
|
309
|
+
const result = new api_container_service_pb_1.UploadFilesArtifactArgs();
|
|
310
|
+
result.setData(data);
|
|
311
|
+
return result;
|
|
312
|
+
}
|
|
313
|
+
exports.newUploadFilesArtifactArgs = newUploadFilesArtifactArgs;
|
|
314
|
+
// ==============================================================================================
|
|
315
|
+
// Render Templates
|
|
316
|
+
// ==============================================================================================
|
|
317
|
+
function newTemplateAndData(template, templateData) {
|
|
318
|
+
const templateAndData = new TemplateAndData();
|
|
319
|
+
templateAndData.setDataAsJson(templateData);
|
|
320
|
+
templateAndData.setTemplate(template);
|
|
321
|
+
return templateAndData;
|
|
322
|
+
}
|
|
323
|
+
exports.newTemplateAndData = newTemplateAndData;
|
|
324
|
+
function newRenderTemplatesToFilesArtifactArgs() {
|
|
325
|
+
const renderTemplatesToFilesArtifactArgs = new api_container_service_pb_1.RenderTemplatesToFilesArtifactArgs();
|
|
326
|
+
return renderTemplatesToFilesArtifactArgs;
|
|
327
|
+
}
|
|
328
|
+
exports.newRenderTemplatesToFilesArtifactArgs = newRenderTemplatesToFilesArtifactArgs;
|