kurtosis-sdk 0.83.2 → 0.83.3

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.
@@ -39,6 +39,50 @@ export namespace Port {
39
39
  }
40
40
  }
41
41
 
42
+ export class Container extends jspb.Message {
43
+ getStatus(): Container.Status;
44
+ setStatus(value: Container.Status): Container;
45
+
46
+ getImageName(): string;
47
+ setImageName(value: string): Container;
48
+
49
+ getEntrypointArgsList(): Array<string>;
50
+ setEntrypointArgsList(value: Array<string>): Container;
51
+ clearEntrypointArgsList(): Container;
52
+ addEntrypointArgs(value: string, index?: number): Container;
53
+
54
+ getCmdArgsList(): Array<string>;
55
+ setCmdArgsList(value: Array<string>): Container;
56
+ clearCmdArgsList(): Container;
57
+ addCmdArgs(value: string, index?: number): Container;
58
+
59
+ getEnvVarsMap(): jspb.Map<string, string>;
60
+ clearEnvVarsMap(): Container;
61
+
62
+ serializeBinary(): Uint8Array;
63
+ toObject(includeInstance?: boolean): Container.AsObject;
64
+ static toObject(includeInstance: boolean, msg: Container): Container.AsObject;
65
+ static serializeBinaryToWriter(message: Container, writer: jspb.BinaryWriter): void;
66
+ static deserializeBinary(bytes: Uint8Array): Container;
67
+ static deserializeBinaryFromReader(message: Container, reader: jspb.BinaryReader): Container;
68
+ }
69
+
70
+ export namespace Container {
71
+ export type AsObject = {
72
+ status: Container.Status,
73
+ imageName: string,
74
+ entrypointArgsList: Array<string>,
75
+ cmdArgsList: Array<string>,
76
+ envVarsMap: Array<[string, string]>,
77
+ }
78
+
79
+ export enum Status {
80
+ STOPPED = 0,
81
+ RUNNING = 1,
82
+ UNKNOWN = 2,
83
+ }
84
+ }
85
+
42
86
  export class ServiceInfo extends jspb.Message {
43
87
  getServiceUuid(): string;
44
88
  setServiceUuid(value: string): ServiceInfo;
@@ -64,6 +108,11 @@ export class ServiceInfo extends jspb.Message {
64
108
  getServiceStatus(): ServiceStatus;
65
109
  setServiceStatus(value: ServiceStatus): ServiceInfo;
66
110
 
111
+ getContainer(): Container | undefined;
112
+ setContainer(value?: Container): ServiceInfo;
113
+ hasContainer(): boolean;
114
+ clearContainer(): ServiceInfo;
115
+
67
116
  serializeBinary(): Uint8Array;
68
117
  toObject(includeInstance?: boolean): ServiceInfo.AsObject;
69
118
  static toObject(includeInstance: boolean, msg: ServiceInfo): ServiceInfo.AsObject;
@@ -82,6 +131,7 @@ export namespace ServiceInfo {
82
131
  name: string,
83
132
  shortenedUuid: string,
84
133
  serviceStatus: ServiceStatus,
134
+ container?: Container.AsObject,
85
135
  }
86
136
  }
87
137
 
@@ -26,6 +26,8 @@ goog.object.extend(proto, google_protobuf_empty_pb);
26
26
  goog.exportSymbol('proto.api_container_api.Connect', null, global);
27
27
  goog.exportSymbol('proto.api_container_api.ConnectServicesArgs', null, global);
28
28
  goog.exportSymbol('proto.api_container_api.ConnectServicesResponse', null, global);
29
+ goog.exportSymbol('proto.api_container_api.Container', null, global);
30
+ goog.exportSymbol('proto.api_container_api.Container.Status', null, global);
29
31
  goog.exportSymbol('proto.api_container_api.DataChunkMetadata', null, global);
30
32
  goog.exportSymbol('proto.api_container_api.DownloadFilesArtifactArgs', null, global);
31
33
  goog.exportSymbol('proto.api_container_api.ExecCommandArgs', null, global);
@@ -91,6 +93,27 @@ if (goog.DEBUG && !COMPILED) {
91
93
  */
92
94
  proto.api_container_api.Port.displayName = 'proto.api_container_api.Port';
93
95
  }
96
+ /**
97
+ * Generated by JsPbCodeGenerator.
98
+ * @param {Array=} opt_data Optional initial data array, typically from a
99
+ * server response, or constructed directly in Javascript. The array is used
100
+ * in place and becomes part of the constructed object. It is not cloned.
101
+ * If no data is provided, the constructed object will be empty, but still
102
+ * valid.
103
+ * @extends {jspb.Message}
104
+ * @constructor
105
+ */
106
+ proto.api_container_api.Container = function(opt_data) {
107
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.api_container_api.Container.repeatedFields_, null);
108
+ };
109
+ goog.inherits(proto.api_container_api.Container, jspb.Message);
110
+ if (goog.DEBUG && !COMPILED) {
111
+ /**
112
+ * @public
113
+ * @override
114
+ */
115
+ proto.api_container_api.Container.displayName = 'proto.api_container_api.Container';
116
+ }
94
117
  /**
95
118
  * Generated by JsPbCodeGenerator.
96
119
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1140,6 +1163,313 @@ proto.api_container_api.Port.prototype.setMaybeWaitTimeout = function(value) {
1140
1163
 
1141
1164
 
1142
1165
 
1166
+ /**
1167
+ * List of repeated fields within this message type.
1168
+ * @private {!Array<number>}
1169
+ * @const
1170
+ */
1171
+ proto.api_container_api.Container.repeatedFields_ = [3,4];
1172
+
1173
+
1174
+
1175
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1176
+ /**
1177
+ * Creates an object representation of this proto.
1178
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1179
+ * Optional fields that are not set will be set to undefined.
1180
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1181
+ * For the list of reserved names please see:
1182
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1183
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1184
+ * JSPB instance for transitional soy proto support:
1185
+ * http://goto/soy-param-migration
1186
+ * @return {!Object}
1187
+ */
1188
+ proto.api_container_api.Container.prototype.toObject = function(opt_includeInstance) {
1189
+ return proto.api_container_api.Container.toObject(opt_includeInstance, this);
1190
+ };
1191
+
1192
+
1193
+ /**
1194
+ * Static version of the {@see toObject} method.
1195
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1196
+ * the JSPB instance for transitional soy proto support:
1197
+ * http://goto/soy-param-migration
1198
+ * @param {!proto.api_container_api.Container} msg The msg instance to transform.
1199
+ * @return {!Object}
1200
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1201
+ */
1202
+ proto.api_container_api.Container.toObject = function(includeInstance, msg) {
1203
+ var f, obj = {
1204
+ status: jspb.Message.getFieldWithDefault(msg, 1, 0),
1205
+ imageName: jspb.Message.getFieldWithDefault(msg, 2, ""),
1206
+ entrypointArgsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1207
+ cmdArgsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1208
+ envVarsMap: (f = msg.getEnvVarsMap()) ? f.toObject(includeInstance, undefined) : []
1209
+ };
1210
+
1211
+ if (includeInstance) {
1212
+ obj.$jspbMessageInstance = msg;
1213
+ }
1214
+ return obj;
1215
+ };
1216
+ }
1217
+
1218
+
1219
+ /**
1220
+ * Deserializes binary data (in protobuf wire format).
1221
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1222
+ * @return {!proto.api_container_api.Container}
1223
+ */
1224
+ proto.api_container_api.Container.deserializeBinary = function(bytes) {
1225
+ var reader = new jspb.BinaryReader(bytes);
1226
+ var msg = new proto.api_container_api.Container;
1227
+ return proto.api_container_api.Container.deserializeBinaryFromReader(msg, reader);
1228
+ };
1229
+
1230
+
1231
+ /**
1232
+ * Deserializes binary data (in protobuf wire format) from the
1233
+ * given reader into the given message object.
1234
+ * @param {!proto.api_container_api.Container} msg The message object to deserialize into.
1235
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1236
+ * @return {!proto.api_container_api.Container}
1237
+ */
1238
+ proto.api_container_api.Container.deserializeBinaryFromReader = function(msg, reader) {
1239
+ while (reader.nextField()) {
1240
+ if (reader.isEndGroup()) {
1241
+ break;
1242
+ }
1243
+ var field = reader.getFieldNumber();
1244
+ switch (field) {
1245
+ case 1:
1246
+ var value = /** @type {!proto.api_container_api.Container.Status} */ (reader.readEnum());
1247
+ msg.setStatus(value);
1248
+ break;
1249
+ case 2:
1250
+ var value = /** @type {string} */ (reader.readString());
1251
+ msg.setImageName(value);
1252
+ break;
1253
+ case 3:
1254
+ var value = /** @type {string} */ (reader.readString());
1255
+ msg.addEntrypointArgs(value);
1256
+ break;
1257
+ case 4:
1258
+ var value = /** @type {string} */ (reader.readString());
1259
+ msg.addCmdArgs(value);
1260
+ break;
1261
+ case 5:
1262
+ var value = msg.getEnvVarsMap();
1263
+ reader.readMessage(value, function(message, reader) {
1264
+ jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
1265
+ });
1266
+ break;
1267
+ default:
1268
+ reader.skipField();
1269
+ break;
1270
+ }
1271
+ }
1272
+ return msg;
1273
+ };
1274
+
1275
+
1276
+ /**
1277
+ * Serializes the message to binary data (in protobuf wire format).
1278
+ * @return {!Uint8Array}
1279
+ */
1280
+ proto.api_container_api.Container.prototype.serializeBinary = function() {
1281
+ var writer = new jspb.BinaryWriter();
1282
+ proto.api_container_api.Container.serializeBinaryToWriter(this, writer);
1283
+ return writer.getResultBuffer();
1284
+ };
1285
+
1286
+
1287
+ /**
1288
+ * Serializes the given message to binary data (in protobuf wire
1289
+ * format), writing to the given BinaryWriter.
1290
+ * @param {!proto.api_container_api.Container} message
1291
+ * @param {!jspb.BinaryWriter} writer
1292
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1293
+ */
1294
+ proto.api_container_api.Container.serializeBinaryToWriter = function(message, writer) {
1295
+ var f = undefined;
1296
+ f = message.getStatus();
1297
+ if (f !== 0.0) {
1298
+ writer.writeEnum(
1299
+ 1,
1300
+ f
1301
+ );
1302
+ }
1303
+ f = message.getImageName();
1304
+ if (f.length > 0) {
1305
+ writer.writeString(
1306
+ 2,
1307
+ f
1308
+ );
1309
+ }
1310
+ f = message.getEntrypointArgsList();
1311
+ if (f.length > 0) {
1312
+ writer.writeRepeatedString(
1313
+ 3,
1314
+ f
1315
+ );
1316
+ }
1317
+ f = message.getCmdArgsList();
1318
+ if (f.length > 0) {
1319
+ writer.writeRepeatedString(
1320
+ 4,
1321
+ f
1322
+ );
1323
+ }
1324
+ f = message.getEnvVarsMap(true);
1325
+ if (f && f.getLength() > 0) {
1326
+ f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
1327
+ }
1328
+ };
1329
+
1330
+
1331
+ /**
1332
+ * @enum {number}
1333
+ */
1334
+ proto.api_container_api.Container.Status = {
1335
+ STOPPED: 0,
1336
+ RUNNING: 1,
1337
+ UNKNOWN: 2
1338
+ };
1339
+
1340
+ /**
1341
+ * optional Status status = 1;
1342
+ * @return {!proto.api_container_api.Container.Status}
1343
+ */
1344
+ proto.api_container_api.Container.prototype.getStatus = function() {
1345
+ return /** @type {!proto.api_container_api.Container.Status} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1346
+ };
1347
+
1348
+
1349
+ /**
1350
+ * @param {!proto.api_container_api.Container.Status} value
1351
+ * @return {!proto.api_container_api.Container} returns this
1352
+ */
1353
+ proto.api_container_api.Container.prototype.setStatus = function(value) {
1354
+ return jspb.Message.setProto3EnumField(this, 1, value);
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * optional string image_name = 2;
1360
+ * @return {string}
1361
+ */
1362
+ proto.api_container_api.Container.prototype.getImageName = function() {
1363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1364
+ };
1365
+
1366
+
1367
+ /**
1368
+ * @param {string} value
1369
+ * @return {!proto.api_container_api.Container} returns this
1370
+ */
1371
+ proto.api_container_api.Container.prototype.setImageName = function(value) {
1372
+ return jspb.Message.setProto3StringField(this, 2, value);
1373
+ };
1374
+
1375
+
1376
+ /**
1377
+ * repeated string entrypoint_args = 3;
1378
+ * @return {!Array<string>}
1379
+ */
1380
+ proto.api_container_api.Container.prototype.getEntrypointArgsList = function() {
1381
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1382
+ };
1383
+
1384
+
1385
+ /**
1386
+ * @param {!Array<string>} value
1387
+ * @return {!proto.api_container_api.Container} returns this
1388
+ */
1389
+ proto.api_container_api.Container.prototype.setEntrypointArgsList = function(value) {
1390
+ return jspb.Message.setField(this, 3, value || []);
1391
+ };
1392
+
1393
+
1394
+ /**
1395
+ * @param {string} value
1396
+ * @param {number=} opt_index
1397
+ * @return {!proto.api_container_api.Container} returns this
1398
+ */
1399
+ proto.api_container_api.Container.prototype.addEntrypointArgs = function(value, opt_index) {
1400
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1401
+ };
1402
+
1403
+
1404
+ /**
1405
+ * Clears the list making it empty but non-null.
1406
+ * @return {!proto.api_container_api.Container} returns this
1407
+ */
1408
+ proto.api_container_api.Container.prototype.clearEntrypointArgsList = function() {
1409
+ return this.setEntrypointArgsList([]);
1410
+ };
1411
+
1412
+
1413
+ /**
1414
+ * repeated string cmd_args = 4;
1415
+ * @return {!Array<string>}
1416
+ */
1417
+ proto.api_container_api.Container.prototype.getCmdArgsList = function() {
1418
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1419
+ };
1420
+
1421
+
1422
+ /**
1423
+ * @param {!Array<string>} value
1424
+ * @return {!proto.api_container_api.Container} returns this
1425
+ */
1426
+ proto.api_container_api.Container.prototype.setCmdArgsList = function(value) {
1427
+ return jspb.Message.setField(this, 4, value || []);
1428
+ };
1429
+
1430
+
1431
+ /**
1432
+ * @param {string} value
1433
+ * @param {number=} opt_index
1434
+ * @return {!proto.api_container_api.Container} returns this
1435
+ */
1436
+ proto.api_container_api.Container.prototype.addCmdArgs = function(value, opt_index) {
1437
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1438
+ };
1439
+
1440
+
1441
+ /**
1442
+ * Clears the list making it empty but non-null.
1443
+ * @return {!proto.api_container_api.Container} returns this
1444
+ */
1445
+ proto.api_container_api.Container.prototype.clearCmdArgsList = function() {
1446
+ return this.setCmdArgsList([]);
1447
+ };
1448
+
1449
+
1450
+ /**
1451
+ * map<string, string> env_vars = 5;
1452
+ * @param {boolean=} opt_noLazyCreate Do not create the map if
1453
+ * empty, instead returning `undefined`
1454
+ * @return {!jspb.Map<string,string>}
1455
+ */
1456
+ proto.api_container_api.Container.prototype.getEnvVarsMap = function(opt_noLazyCreate) {
1457
+ return /** @type {!jspb.Map<string,string>} */ (
1458
+ jspb.Message.getMapField(this, 5, opt_noLazyCreate,
1459
+ null));
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * Clears values from the map. The map will be non-null.
1465
+ * @return {!proto.api_container_api.Container} returns this
1466
+ */
1467
+ proto.api_container_api.Container.prototype.clearEnvVarsMap = function() {
1468
+ this.getEnvVarsMap().clear();
1469
+ return this;};
1470
+
1471
+
1472
+
1143
1473
 
1144
1474
 
1145
1475
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1178,7 +1508,8 @@ proto.api_container_api.ServiceInfo.toObject = function(includeInstance, msg) {
1178
1508
  maybePublicPortsMap: (f = msg.getMaybePublicPortsMap()) ? f.toObject(includeInstance, proto.api_container_api.Port.toObject) : [],
1179
1509
  name: jspb.Message.getFieldWithDefault(msg, 6, ""),
1180
1510
  shortenedUuid: jspb.Message.getFieldWithDefault(msg, 7, ""),
1181
- serviceStatus: jspb.Message.getFieldWithDefault(msg, 8, 0)
1511
+ serviceStatus: jspb.Message.getFieldWithDefault(msg, 8, 0),
1512
+ container: (f = msg.getContainer()) && proto.api_container_api.Container.toObject(includeInstance, f)
1182
1513
  };
1183
1514
 
1184
1515
  if (includeInstance) {
@@ -1251,6 +1582,11 @@ proto.api_container_api.ServiceInfo.deserializeBinaryFromReader = function(msg,
1251
1582
  var value = /** @type {!proto.api_container_api.ServiceStatus} */ (reader.readEnum());
1252
1583
  msg.setServiceStatus(value);
1253
1584
  break;
1585
+ case 9:
1586
+ var value = new proto.api_container_api.Container;
1587
+ reader.readMessage(value,proto.api_container_api.Container.deserializeBinaryFromReader);
1588
+ msg.setContainer(value);
1589
+ break;
1254
1590
  default:
1255
1591
  reader.skipField();
1256
1592
  break;
@@ -1330,6 +1666,14 @@ proto.api_container_api.ServiceInfo.serializeBinaryToWriter = function(message,
1330
1666
  f
1331
1667
  );
1332
1668
  }
1669
+ f = message.getContainer();
1670
+ if (f != null) {
1671
+ writer.writeMessage(
1672
+ 9,
1673
+ f,
1674
+ proto.api_container_api.Container.serializeBinaryToWriter
1675
+ );
1676
+ }
1333
1677
  };
1334
1678
 
1335
1679
 
@@ -1485,6 +1829,43 @@ proto.api_container_api.ServiceInfo.prototype.setServiceStatus = function(value)
1485
1829
  };
1486
1830
 
1487
1831
 
1832
+ /**
1833
+ * optional Container container = 9;
1834
+ * @return {?proto.api_container_api.Container}
1835
+ */
1836
+ proto.api_container_api.ServiceInfo.prototype.getContainer = function() {
1837
+ return /** @type{?proto.api_container_api.Container} */ (
1838
+ jspb.Message.getWrapperField(this, proto.api_container_api.Container, 9));
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * @param {?proto.api_container_api.Container|undefined} value
1844
+ * @return {!proto.api_container_api.ServiceInfo} returns this
1845
+ */
1846
+ proto.api_container_api.ServiceInfo.prototype.setContainer = function(value) {
1847
+ return jspb.Message.setWrapperField(this, 9, value);
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * Clears the message field making it undefined.
1853
+ * @return {!proto.api_container_api.ServiceInfo} returns this
1854
+ */
1855
+ proto.api_container_api.ServiceInfo.prototype.clearContainer = function() {
1856
+ return this.setContainer(undefined);
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * Returns whether this field is set.
1862
+ * @return {boolean}
1863
+ */
1864
+ proto.api_container_api.ServiceInfo.prototype.hasContainer = function() {
1865
+ return jspb.Message.getField(this, 9) != null;
1866
+ };
1867
+
1868
+
1488
1869
 
1489
1870
  /**
1490
1871
  * List of repeated fields within this message type.
@@ -127,6 +127,70 @@ export declare enum Port_TransportProtocol {
127
127
  UDP = 2,
128
128
  }
129
129
 
130
+ /**
131
+ * @generated from message api_container_api.Container
132
+ */
133
+ export declare class Container extends Message<Container> {
134
+ /**
135
+ * @generated from field: api_container_api.Container.Status status = 1;
136
+ */
137
+ status: Container_Status;
138
+
139
+ /**
140
+ * @generated from field: string image_name = 2;
141
+ */
142
+ imageName: string;
143
+
144
+ /**
145
+ * @generated from field: repeated string entrypoint_args = 3;
146
+ */
147
+ entrypointArgs: string[];
148
+
149
+ /**
150
+ * @generated from field: repeated string cmd_args = 4;
151
+ */
152
+ cmdArgs: string[];
153
+
154
+ /**
155
+ * @generated from field: map<string, string> env_vars = 5;
156
+ */
157
+ envVars: { [key: string]: string };
158
+
159
+ constructor(data?: PartialMessage<Container>);
160
+
161
+ static readonly runtime: typeof proto3;
162
+ static readonly typeName = "api_container_api.Container";
163
+ static readonly fields: FieldList;
164
+
165
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Container;
166
+
167
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Container;
168
+
169
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Container;
170
+
171
+ static equals(a: Container | PlainMessage<Container> | undefined, b: Container | PlainMessage<Container> | undefined): boolean;
172
+ }
173
+
174
+ /**
175
+ * @generated from enum api_container_api.Container.Status
176
+ */
177
+ export declare enum Container_Status {
178
+ /**
179
+ * @generated from enum value: STOPPED = 0;
180
+ */
181
+ STOPPED = 0,
182
+
183
+ /**
184
+ * @generated from enum value: RUNNING = 1;
185
+ */
186
+ RUNNING = 1,
187
+
188
+ /**
189
+ * @generated from enum value: UNKNOWN = 2;
190
+ */
191
+ UNKNOWN = 2,
192
+ }
193
+
130
194
  /**
131
195
  * @generated from message api_container_api.ServiceInfo
132
196
  */
@@ -191,6 +255,13 @@ export declare class ServiceInfo extends Message<ServiceInfo> {
191
255
  */
192
256
  serviceStatus: ServiceStatus;
193
257
 
258
+ /**
259
+ * Docker container or Kubernetes pod container
260
+ *
261
+ * @generated from field: api_container_api.Container container = 9;
262
+ */
263
+ container?: Container;
264
+
194
265
  constructor(data?: PartialMessage<ServiceInfo>);
195
266
 
196
267
  static readonly runtime: typeof proto3;
@@ -69,6 +69,32 @@ export const Port_TransportProtocol = proto3.makeEnum(
69
69
  ],
70
70
  );
71
71
 
72
+ /**
73
+ * @generated from message api_container_api.Container
74
+ */
75
+ export const Container = proto3.makeMessageType(
76
+ "api_container_api.Container",
77
+ () => [
78
+ { no: 1, name: "status", kind: "enum", T: proto3.getEnumType(Container_Status) },
79
+ { no: 2, name: "image_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
80
+ { no: 3, name: "entrypoint_args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
81
+ { no: 4, name: "cmd_args", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
82
+ { no: 5, name: "env_vars", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
83
+ ],
84
+ );
85
+
86
+ /**
87
+ * @generated from enum api_container_api.Container.Status
88
+ */
89
+ export const Container_Status = proto3.makeEnum(
90
+ "api_container_api.Container.Status",
91
+ [
92
+ {no: 0, name: "STOPPED"},
93
+ {no: 1, name: "RUNNING"},
94
+ {no: 2, name: "UNKNOWN"},
95
+ ],
96
+ );
97
+
72
98
  /**
73
99
  * @generated from message api_container_api.ServiceInfo
74
100
  */
@@ -83,6 +109,7 @@ export const ServiceInfo = proto3.makeMessageType(
83
109
  { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
110
  { no: 7, name: "shortened_uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
111
  { no: 8, name: "service_status", kind: "enum", T: proto3.getEnumType(ServiceStatus) },
112
+ { no: 9, name: "container", kind: "message", T: Container },
86
113
  ],
87
114
  );
88
115
 
@@ -173,7 +173,7 @@ class EnclaveContext {
173
173
  return (0, neverthrow_1.err)(resultConvertServiceCtxPublicPorts.error);
174
174
  }
175
175
  const serviceCtxPublicPorts = resultConvertServiceCtxPublicPorts.value;
176
- const serviceContext = new service_context_1.ServiceContext(this.backend, serviceIdentifier, serviceInfo.getServiceUuid(), serviceInfo.getPrivateIpAddr(), serviceCtxPrivatePorts, serviceInfo.getMaybePublicIpAddr(), serviceCtxPublicPorts, serviceInfo.getServiceStatus());
176
+ const serviceContext = new service_context_1.ServiceContext(this.backend, serviceIdentifier, serviceInfo.getServiceUuid(), serviceInfo.getPrivateIpAddr(), serviceCtxPrivatePorts, serviceInfo.getMaybePublicIpAddr(), serviceCtxPublicPorts, serviceInfo.getServiceStatus(), serviceInfo.getContainer());
177
177
  return (0, neverthrow_1.ok)(serviceContext);
178
178
  });
179
179
  }
@@ -1,5 +1,5 @@
1
1
  import { Result } from 'neverthrow';
2
- import type { ServiceStatus } from '../../kurtosis_core_rpc_api_bindings/api_container_service_pb';
2
+ import type { ServiceStatus, Container } from '../../kurtosis_core_rpc_api_bindings/api_container_service_pb';
3
3
  import type { PortSpec } from './port_spec';
4
4
  import type { ServiceName, ServiceUUID } from './service';
5
5
  import { GenericApiContainerClient } from '../enclaves/generic_api_container_client';
@@ -12,7 +12,8 @@ export declare class ServiceContext {
12
12
  private readonly publicIpAddress;
13
13
  private readonly publicPorts;
14
14
  private readonly serviceStatus;
15
- constructor(client: GenericApiContainerClient, serviceName: ServiceName, serviceUuid: ServiceUUID, privateIpAddress: string, privatePorts: Map<string, PortSpec>, publicIpAddress: string, publicPorts: Map<string, PortSpec>, serviceStatus: ServiceStatus);
15
+ private readonly container;
16
+ constructor(client: GenericApiContainerClient, serviceName: ServiceName, serviceUuid: ServiceUUID, privateIpAddress: string, privatePorts: Map<string, PortSpec>, publicIpAddress: string, publicPorts: Map<string, PortSpec>, serviceStatus: ServiceStatus, container: Container | undefined);
16
17
  getServiceName(): ServiceName;
17
18
  getServiceUUID(): ServiceUUID;
18
19
  getPrivateIPAddress(): string;
@@ -20,5 +21,6 @@ export declare class ServiceContext {
20
21
  getMaybePublicIPAddress(): string;
21
22
  getPublicPorts(): Map<string, PortSpec>;
22
23
  getServiceStatus(): ServiceStatus;
24
+ getContainer(): Container | undefined;
23
25
  execCommand(command: string[]): Promise<Result<[number, string], Error>>;
24
26
  }
@@ -14,7 +14,7 @@ const neverthrow_1 = require("neverthrow");
14
14
  const constructor_calls_1 = require("../constructor_calls");
15
15
  // Docs available at https://docs.kurtosis.com/sdk/#servicecontext
16
16
  class ServiceContext {
17
- constructor(client, serviceName, serviceUuid, privateIpAddress, privatePorts, publicIpAddress, publicPorts, serviceStatus) {
17
+ constructor(client, serviceName, serviceUuid, privateIpAddress, privatePorts, publicIpAddress, publicPorts, serviceStatus, container) {
18
18
  this.client = client;
19
19
  this.serviceName = serviceName;
20
20
  this.serviceUuid = serviceUuid;
@@ -23,6 +23,7 @@ class ServiceContext {
23
23
  this.publicIpAddress = publicIpAddress;
24
24
  this.publicPorts = publicPorts;
25
25
  this.serviceStatus = serviceStatus;
26
+ this.container = container;
26
27
  }
27
28
  // Docs available at https://docs.kurtosis.com/sdk/#getservicename---servicename
28
29
  getServiceName() {
@@ -52,6 +53,10 @@ class ServiceContext {
52
53
  getServiceStatus() {
53
54
  return this.serviceStatus;
54
55
  }
56
+ // Docs available at https://docs.kurtosis.com/sdk/#getcontainer---container
57
+ getContainer() {
58
+ return this.container;
59
+ }
55
60
  // Docs available at https://docs.kurtosis.com/sdk/#execcommandliststring-command---int-exitcode-string-logs
56
61
  execCommand(command) {
57
62
  return __awaiter(this, void 0, void 0, function* () {
@@ -4,5 +4,5 @@ exports.KURTOSIS_VERSION = void 0;
4
4
  // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
5
5
  // This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
6
6
  // API container
7
- exports.KURTOSIS_VERSION = "0.83.2";
7
+ exports.KURTOSIS_VERSION = "0.83.3";
8
8
  // !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kurtosis-sdk",
3
3
  "//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
4
- "version": "0.83.2",
4
+ "version": "0.83.3",
5
5
  "main": "./build/index",
6
6
  "description": "This repo contains a Typescript client for communicating with the Kurtosis Engine server, which is responsible for creating, managing and destroying Kurtosis Enclaves.",
7
7
  "types": "./build/index",