kurtosis-sdk 0.59.0 → 0.59.2

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.
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.15.6
11
+ // source: api_container_service.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -41,7 +45,7 @@ proto.api_container_api.ApiContainerServiceClient =
41
45
  /**
42
46
  * @private @const {string} The hostname
43
47
  */
44
- this.hostname_ = hostname;
48
+ this.hostname_ = hostname.replace(/\/+$/, '');
45
49
 
46
50
  };
47
51
 
@@ -67,7 +71,7 @@ proto.api_container_api.ApiContainerServicePromiseClient =
67
71
  /**
68
72
  * @private @const {string} The hostname
69
73
  */
70
- this.hostname_ = hostname;
74
+ this.hostname_ = hostname.replace(/\/+$/, '');
71
75
 
72
76
  };
73
77
 
@@ -7,8 +7,11 @@ export class Port extends jspb.Message {
7
7
  getNumber(): number;
8
8
  setNumber(value: number): Port;
9
9
 
10
- getProtocol(): Port.Protocol;
11
- setProtocol(value: Port.Protocol): Port;
10
+ getTransportProtocol(): Port.TransportProtocol;
11
+ setTransportProtocol(value: Port.TransportProtocol): Port;
12
+
13
+ getMaybeApplicationProtocol(): string;
14
+ setMaybeApplicationProtocol(value: string): Port;
12
15
 
13
16
  serializeBinary(): Uint8Array;
14
17
  toObject(includeInstance?: boolean): Port.AsObject;
@@ -21,10 +24,11 @@ export class Port extends jspb.Message {
21
24
  export namespace Port {
22
25
  export type AsObject = {
23
26
  number: number,
24
- protocol: Port.Protocol,
27
+ transportProtocol: Port.TransportProtocol,
28
+ maybeApplicationProtocol: string,
25
29
  }
26
30
 
27
- export enum Protocol {
31
+ export enum TransportProtocol {
28
32
  TCP = 0,
29
33
  SCTP = 1,
30
34
  UDP = 2,
@@ -35,7 +35,7 @@ goog.exportSymbol('proto.api_container_api.PartitionConnections', null, global);
35
35
  goog.exportSymbol('proto.api_container_api.PartitionServices', null, global);
36
36
  goog.exportSymbol('proto.api_container_api.PauseServiceArgs', null, global);
37
37
  goog.exportSymbol('proto.api_container_api.Port', null, global);
38
- goog.exportSymbol('proto.api_container_api.Port.Protocol', null, global);
38
+ goog.exportSymbol('proto.api_container_api.Port.TransportProtocol', null, global);
39
39
  goog.exportSymbol('proto.api_container_api.RemoveServiceArgs', null, global);
40
40
  goog.exportSymbol('proto.api_container_api.RemoveServiceResponse', null, global);
41
41
  goog.exportSymbol('proto.api_container_api.RenderTemplatesToFilesArtifactArgs', null, global);
@@ -1198,7 +1198,8 @@ proto.api_container_api.Port.prototype.toObject = function(opt_includeInstance)
1198
1198
  proto.api_container_api.Port.toObject = function(includeInstance, msg) {
1199
1199
  var f, obj = {
1200
1200
  number: jspb.Message.getFieldWithDefault(msg, 1, 0),
1201
- protocol: jspb.Message.getFieldWithDefault(msg, 2, 0)
1201
+ transportProtocol: jspb.Message.getFieldWithDefault(msg, 2, 0),
1202
+ maybeApplicationProtocol: jspb.Message.getFieldWithDefault(msg, 3, "")
1202
1203
  };
1203
1204
 
1204
1205
  if (includeInstance) {
@@ -1240,8 +1241,12 @@ proto.api_container_api.Port.deserializeBinaryFromReader = function(msg, reader)
1240
1241
  msg.setNumber(value);
1241
1242
  break;
1242
1243
  case 2:
1243
- var value = /** @type {!proto.api_container_api.Port.Protocol} */ (reader.readEnum());
1244
- msg.setProtocol(value);
1244
+ var value = /** @type {!proto.api_container_api.Port.TransportProtocol} */ (reader.readEnum());
1245
+ msg.setTransportProtocol(value);
1246
+ break;
1247
+ case 3:
1248
+ var value = /** @type {string} */ (reader.readString());
1249
+ msg.setMaybeApplicationProtocol(value);
1245
1250
  break;
1246
1251
  default:
1247
1252
  reader.skipField();
@@ -1279,20 +1284,27 @@ proto.api_container_api.Port.serializeBinaryToWriter = function(message, writer)
1279
1284
  f
1280
1285
  );
1281
1286
  }
1282
- f = message.getProtocol();
1287
+ f = message.getTransportProtocol();
1283
1288
  if (f !== 0.0) {
1284
1289
  writer.writeEnum(
1285
1290
  2,
1286
1291
  f
1287
1292
  );
1288
1293
  }
1294
+ f = message.getMaybeApplicationProtocol();
1295
+ if (f.length > 0) {
1296
+ writer.writeString(
1297
+ 3,
1298
+ f
1299
+ );
1300
+ }
1289
1301
  };
1290
1302
 
1291
1303
 
1292
1304
  /**
1293
1305
  * @enum {number}
1294
1306
  */
1295
- proto.api_container_api.Port.Protocol = {
1307
+ proto.api_container_api.Port.TransportProtocol = {
1296
1308
  TCP: 0,
1297
1309
  SCTP: 1,
1298
1310
  UDP: 2
@@ -1317,23 +1329,41 @@ proto.api_container_api.Port.prototype.setNumber = function(value) {
1317
1329
 
1318
1330
 
1319
1331
  /**
1320
- * optional Protocol protocol = 2;
1321
- * @return {!proto.api_container_api.Port.Protocol}
1332
+ * optional TransportProtocol transport_protocol = 2;
1333
+ * @return {!proto.api_container_api.Port.TransportProtocol}
1322
1334
  */
1323
- proto.api_container_api.Port.prototype.getProtocol = function() {
1324
- return /** @type {!proto.api_container_api.Port.Protocol} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1335
+ proto.api_container_api.Port.prototype.getTransportProtocol = function() {
1336
+ return /** @type {!proto.api_container_api.Port.TransportProtocol} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
1325
1337
  };
1326
1338
 
1327
1339
 
1328
1340
  /**
1329
- * @param {!proto.api_container_api.Port.Protocol} value
1341
+ * @param {!proto.api_container_api.Port.TransportProtocol} value
1330
1342
  * @return {!proto.api_container_api.Port} returns this
1331
1343
  */
1332
- proto.api_container_api.Port.prototype.setProtocol = function(value) {
1344
+ proto.api_container_api.Port.prototype.setTransportProtocol = function(value) {
1333
1345
  return jspb.Message.setProto3EnumField(this, 2, value);
1334
1346
  };
1335
1347
 
1336
1348
 
1349
+ /**
1350
+ * optional string maybe_application_protocol = 3;
1351
+ * @return {string}
1352
+ */
1353
+ proto.api_container_api.Port.prototype.getMaybeApplicationProtocol = function() {
1354
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1355
+ };
1356
+
1357
+
1358
+ /**
1359
+ * @param {string} value
1360
+ * @return {!proto.api_container_api.Port} returns this
1361
+ */
1362
+ proto.api_container_api.Port.prototype.setMaybeApplicationProtocol = function(value) {
1363
+ return jspb.Message.setProto3StringField(this, 3, value);
1364
+ };
1365
+
1366
+
1337
1367
 
1338
1368
 
1339
1369
 
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.15.6
11
+ // source: executable_module_service.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -41,7 +45,7 @@ proto.module_api.ExecutableModuleServiceClient =
41
45
  /**
42
46
  * @private @const {string} The hostname
43
47
  */
44
- this.hostname_ = hostname;
48
+ this.hostname_ = hostname.replace(/\/+$/, '');
45
49
 
46
50
  };
47
51
 
@@ -67,7 +71,7 @@ proto.module_api.ExecutableModuleServicePromiseClient =
67
71
  /**
68
72
  * @private @const {string} The hostname
69
73
  */
70
- this.hostname_ = hostname;
74
+ this.hostname_ = hostname.replace(/\/+$/, '');
71
75
 
72
76
  };
73
77
 
@@ -2,7 +2,7 @@ import { ExecCommandArgs, GetServicesArgs, PartitionServices, PartitionConnectio
2
2
  import { ServiceID } from './services/service';
3
3
  import { ModuleID } from "./modules/module_context";
4
4
  import TemplateAndData = RenderTemplatesToFilesArtifactArgs.TemplateAndData;
5
- export declare function newPort(number: number, protocol: Port.Protocol): Port;
5
+ export declare function newPort(number: number, protocol: Port.TransportProtocol): Port;
6
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
7
  export declare function newLoadModuleArgs(moduleId: ModuleID, image: string, serializedParams: string): LoadModuleArgs;
8
8
  export declare function newUnloadModuleArgs(moduleId: ModuleID): UnloadModuleArgs;
@@ -13,7 +13,7 @@ var TemplateAndData = api_container_service_pb_1.RenderTemplatesToFilesArtifactA
13
13
  function newPort(number, protocol) {
14
14
  const result = new api_container_service_pb_1.Port();
15
15
  result.setNumber(number);
16
- result.setProtocol(protocol);
16
+ result.setTransportProtocol(protocol);
17
17
  return result;
18
18
  }
19
19
  exports.newPort = newPort;
@@ -569,7 +569,7 @@ class EnclaveContext {
569
569
  static convertApiPortsToServiceContextPorts(apiPorts) {
570
570
  const result = new Map();
571
571
  for (const [portId, apiPortSpec] of apiPorts.entries()) {
572
- const portProtocol = apiPortSpec.getProtocol();
572
+ const portProtocol = apiPortSpec.getTransportProtocol();
573
573
  const portNum = apiPortSpec.getNumber();
574
574
  result.set(portId, new port_spec_1.PortSpec(portNum, portProtocol));
575
575
  }
@@ -1,8 +1,8 @@
1
1
  import { Port } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
2
- export declare type PortProtocol = Port.Protocol;
2
+ export declare type PortProtocol = Port.TransportProtocol;
3
3
  export declare namespace PortProtocol {
4
- const TCP = Port.Protocol.TCP;
5
- const UDP = Port.Protocol.UDP;
4
+ const TCP = Port.TransportProtocol.TCP;
5
+ const UDP = Port.TransportProtocol.UDP;
6
6
  }
7
7
  export declare class PortSpec {
8
8
  readonly number: number;
@@ -4,8 +4,8 @@ exports.PortSpec = exports.PortProtocol = void 0;
4
4
  const api_container_service_pb_1 = require("../../kurtosis_core_rpc_api_bindings/api_container_service_pb");
5
5
  var PortProtocol;
6
6
  (function (PortProtocol) {
7
- PortProtocol.TCP = api_container_service_pb_1.Port.Protocol.TCP;
8
- PortProtocol.UDP = api_container_service_pb_1.Port.Protocol.UDP;
7
+ PortProtocol.TCP = api_container_service_pb_1.Port.TransportProtocol.TCP;
8
+ PortProtocol.UDP = api_container_service_pb_1.Port.TransportProtocol.UDP;
9
9
  })(PortProtocol = exports.PortProtocol || (exports.PortProtocol = {}));
10
10
  class PortSpec {
11
11
  constructor(number, protocol) {
@@ -4,7 +4,11 @@
4
4
  * @public
5
5
  */
6
6
 
7
- // GENERATED CODE -- DO NOT EDIT!
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.4.2
10
+ // protoc v3.15.6
11
+ // source: engine_service.proto
8
12
 
9
13
 
10
14
  /* eslint-disable */
@@ -43,7 +47,7 @@ proto.engine_api.EngineServiceClient =
43
47
  /**
44
48
  * @private @const {string} The hostname
45
49
  */
46
- this.hostname_ = hostname;
50
+ this.hostname_ = hostname.replace(/\/+$/, '');
47
51
 
48
52
  };
49
53
 
@@ -69,7 +73,7 @@ proto.engine_api.EngineServicePromiseClient =
69
73
  /**
70
74
  * @private @const {string} The hostname
71
75
  */
72
- this.hostname_ = hostname;
76
+ this.hostname_ = hostname.replace(/\/+$/, '');
73
77
 
74
78
  };
75
79
 
@@ -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.59.0";
7
+ exports.KURTOSIS_VERSION = "0.59.2";
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.59.0",
4
+ "version": "0.59.2",
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",