kurtosis-sdk 0.57.0 → 0.57.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,11 +4,7 @@
4
4
  * @public
5
5
  */
6
6
 
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
7
+ // GENERATED CODE -- DO NOT EDIT!
12
8
 
13
9
 
14
10
  /* eslint-disable */
@@ -49,7 +45,7 @@ proto.api_container_api.ApiContainerServiceClient =
49
45
  /**
50
46
  * @private @const {string} The hostname
51
47
  */
52
- this.hostname_ = hostname.replace(/\/+$/, '');
48
+ this.hostname_ = hostname;
53
49
 
54
50
  };
55
51
 
@@ -75,7 +71,7 @@ proto.api_container_api.ApiContainerServicePromiseClient =
75
71
  /**
76
72
  * @private @const {string} The hostname
77
73
  */
78
- this.hostname_ = hostname.replace(/\/+$/, '');
74
+ this.hostname_ = hostname;
79
75
 
80
76
  };
81
77
 
@@ -343,6 +343,9 @@ export class RunStarlarkScriptArgs extends jspb.Message {
343
343
  getSerializedScript(): string;
344
344
  setSerializedScript(value: string): RunStarlarkScriptArgs;
345
345
 
346
+ getSerializedParams(): string;
347
+ setSerializedParams(value: string): RunStarlarkScriptArgs;
348
+
346
349
  getDryRun(): boolean;
347
350
  setDryRun(value: boolean): RunStarlarkScriptArgs;
348
351
  hasDryRun(): boolean;
@@ -359,12 +362,13 @@ export class RunStarlarkScriptArgs extends jspb.Message {
359
362
  export namespace RunStarlarkScriptArgs {
360
363
  export type AsObject = {
361
364
  serializedScript: string,
365
+ serializedParams: string,
362
366
  dryRun?: boolean,
363
367
  }
364
368
 
365
369
  export enum DryRunCase {
366
370
  _DRY_RUN_NOT_SET = 0,
367
- DRY_RUN = 2,
371
+ DRY_RUN = 3,
368
372
  }
369
373
  }
370
374
 
@@ -440,6 +444,11 @@ export class StarlarkRunResponseLine extends jspb.Message {
440
444
  hasInstructionResult(): boolean;
441
445
  clearInstructionResult(): StarlarkRunResponseLine;
442
446
 
447
+ getRunFinishedEvent(): StarlarkRunFinishedEvent | undefined;
448
+ setRunFinishedEvent(value?: StarlarkRunFinishedEvent): StarlarkRunResponseLine;
449
+ hasRunFinishedEvent(): boolean;
450
+ clearRunFinishedEvent(): StarlarkRunResponseLine;
451
+
443
452
  getRunResponseLineCase(): StarlarkRunResponseLine.RunResponseLineCase;
444
453
 
445
454
  serializeBinary(): Uint8Array;
@@ -456,6 +465,7 @@ export namespace StarlarkRunResponseLine {
456
465
  error?: StarlarkError.AsObject,
457
466
  progressInfo?: StarlarkRunProgress.AsObject,
458
467
  instructionResult?: StarlarkInstructionResult.AsObject,
468
+ runFinishedEvent?: StarlarkRunFinishedEvent.AsObject,
459
469
  }
460
470
 
461
471
  export enum RunResponseLineCase {
@@ -464,6 +474,7 @@ export namespace StarlarkRunResponseLine {
464
474
  ERROR = 2,
465
475
  PROGRESS_INFO = 3,
466
476
  INSTRUCTION_RESULT = 4,
477
+ RUN_FINISHED_EVENT = 5,
467
478
  }
468
479
  }
469
480
 
@@ -699,6 +710,35 @@ export namespace StarlarkRunProgress {
699
710
  }
700
711
  }
701
712
 
713
+ export class StarlarkRunFinishedEvent extends jspb.Message {
714
+ getIsrunsuccessful(): boolean;
715
+ setIsrunsuccessful(value: boolean): StarlarkRunFinishedEvent;
716
+
717
+ getSerializedOutput(): string;
718
+ setSerializedOutput(value: string): StarlarkRunFinishedEvent;
719
+ hasSerializedOutput(): boolean;
720
+ clearSerializedOutput(): StarlarkRunFinishedEvent;
721
+
722
+ serializeBinary(): Uint8Array;
723
+ toObject(includeInstance?: boolean): StarlarkRunFinishedEvent.AsObject;
724
+ static toObject(includeInstance: boolean, msg: StarlarkRunFinishedEvent): StarlarkRunFinishedEvent.AsObject;
725
+ static serializeBinaryToWriter(message: StarlarkRunFinishedEvent, writer: jspb.BinaryWriter): void;
726
+ static deserializeBinary(bytes: Uint8Array): StarlarkRunFinishedEvent;
727
+ static deserializeBinaryFromReader(message: StarlarkRunFinishedEvent, reader: jspb.BinaryReader): StarlarkRunFinishedEvent;
728
+ }
729
+
730
+ export namespace StarlarkRunFinishedEvent {
731
+ export type AsObject = {
732
+ isrunsuccessful: boolean,
733
+ serializedOutput?: string,
734
+ }
735
+
736
+ export enum SerializedOutputCase {
737
+ _SERIALIZED_OUTPUT_NOT_SET = 0,
738
+ SERIALIZED_OUTPUT = 2,
739
+ }
740
+ }
741
+
702
742
  export class StartServicesArgs extends jspb.Message {
703
743
  getServiceIdsToConfigsMap(): jspb.Map<string, ServiceConfig>;
704
744
  clearServiceIdsToConfigsMap(): StartServicesArgs;
@@ -71,6 +71,7 @@ goog.exportSymbol('proto.api_container_api.StarlarkInstructionArg', null, global
71
71
  goog.exportSymbol('proto.api_container_api.StarlarkInstructionPosition', null, global);
72
72
  goog.exportSymbol('proto.api_container_api.StarlarkInstructionResult', null, global);
73
73
  goog.exportSymbol('proto.api_container_api.StarlarkInterpretationError', null, global);
74
+ goog.exportSymbol('proto.api_container_api.StarlarkRunFinishedEvent', null, global);
74
75
  goog.exportSymbol('proto.api_container_api.StarlarkRunProgress', null, global);
75
76
  goog.exportSymbol('proto.api_container_api.StarlarkRunResponseLine', null, global);
76
77
  goog.exportSymbol('proto.api_container_api.StarlarkRunResponseLine.RunResponseLineCase', null, global);
@@ -592,6 +593,27 @@ if (goog.DEBUG && !COMPILED) {
592
593
  */
593
594
  proto.api_container_api.StarlarkRunProgress.displayName = 'proto.api_container_api.StarlarkRunProgress';
594
595
  }
596
+ /**
597
+ * Generated by JsPbCodeGenerator.
598
+ * @param {Array=} opt_data Optional initial data array, typically from a
599
+ * server response, or constructed directly in Javascript. The array is used
600
+ * in place and becomes part of the constructed object. It is not cloned.
601
+ * If no data is provided, the constructed object will be empty, but still
602
+ * valid.
603
+ * @extends {jspb.Message}
604
+ * @constructor
605
+ */
606
+ proto.api_container_api.StarlarkRunFinishedEvent = function(opt_data) {
607
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
608
+ };
609
+ goog.inherits(proto.api_container_api.StarlarkRunFinishedEvent, jspb.Message);
610
+ if (goog.DEBUG && !COMPILED) {
611
+ /**
612
+ * @public
613
+ * @override
614
+ */
615
+ proto.api_container_api.StarlarkRunFinishedEvent.displayName = 'proto.api_container_api.StarlarkRunFinishedEvent';
616
+ }
595
617
  /**
596
618
  * Generated by JsPbCodeGenerator.
597
619
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3853,7 +3875,8 @@ proto.api_container_api.RunStarlarkScriptArgs.prototype.toObject = function(opt_
3853
3875
  proto.api_container_api.RunStarlarkScriptArgs.toObject = function(includeInstance, msg) {
3854
3876
  var f, obj = {
3855
3877
  serializedScript: jspb.Message.getFieldWithDefault(msg, 1, ""),
3856
- dryRun: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
3878
+ serializedParams: jspb.Message.getFieldWithDefault(msg, 2, ""),
3879
+ dryRun: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
3857
3880
  };
3858
3881
 
3859
3882
  if (includeInstance) {
@@ -3895,6 +3918,10 @@ proto.api_container_api.RunStarlarkScriptArgs.deserializeBinaryFromReader = func
3895
3918
  msg.setSerializedScript(value);
3896
3919
  break;
3897
3920
  case 2:
3921
+ var value = /** @type {string} */ (reader.readString());
3922
+ msg.setSerializedParams(value);
3923
+ break;
3924
+ case 3:
3898
3925
  var value = /** @type {boolean} */ (reader.readBool());
3899
3926
  msg.setDryRun(value);
3900
3927
  break;
@@ -3934,10 +3961,17 @@ proto.api_container_api.RunStarlarkScriptArgs.serializeBinaryToWriter = function
3934
3961
  f
3935
3962
  );
3936
3963
  }
3937
- f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
3964
+ f = message.getSerializedParams();
3965
+ if (f.length > 0) {
3966
+ writer.writeString(
3967
+ 2,
3968
+ f
3969
+ );
3970
+ }
3971
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
3938
3972
  if (f != null) {
3939
3973
  writer.writeBool(
3940
- 2,
3974
+ 3,
3941
3975
  f
3942
3976
  );
3943
3977
  }
@@ -3963,11 +3997,29 @@ proto.api_container_api.RunStarlarkScriptArgs.prototype.setSerializedScript = fu
3963
3997
 
3964
3998
 
3965
3999
  /**
3966
- * optional bool dry_run = 2;
4000
+ * optional string serialized_params = 2;
4001
+ * @return {string}
4002
+ */
4003
+ proto.api_container_api.RunStarlarkScriptArgs.prototype.getSerializedParams = function() {
4004
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4005
+ };
4006
+
4007
+
4008
+ /**
4009
+ * @param {string} value
4010
+ * @return {!proto.api_container_api.RunStarlarkScriptArgs} returns this
4011
+ */
4012
+ proto.api_container_api.RunStarlarkScriptArgs.prototype.setSerializedParams = function(value) {
4013
+ return jspb.Message.setProto3StringField(this, 2, value);
4014
+ };
4015
+
4016
+
4017
+ /**
4018
+ * optional bool dry_run = 3;
3967
4019
  * @return {boolean}
3968
4020
  */
3969
4021
  proto.api_container_api.RunStarlarkScriptArgs.prototype.getDryRun = function() {
3970
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
4022
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
3971
4023
  };
3972
4024
 
3973
4025
 
@@ -3976,7 +4028,7 @@ proto.api_container_api.RunStarlarkScriptArgs.prototype.getDryRun = function() {
3976
4028
  * @return {!proto.api_container_api.RunStarlarkScriptArgs} returns this
3977
4029
  */
3978
4030
  proto.api_container_api.RunStarlarkScriptArgs.prototype.setDryRun = function(value) {
3979
- return jspb.Message.setField(this, 2, value);
4031
+ return jspb.Message.setField(this, 3, value);
3980
4032
  };
3981
4033
 
3982
4034
 
@@ -3985,7 +4037,7 @@ proto.api_container_api.RunStarlarkScriptArgs.prototype.setDryRun = function(val
3985
4037
  * @return {!proto.api_container_api.RunStarlarkScriptArgs} returns this
3986
4038
  */
3987
4039
  proto.api_container_api.RunStarlarkScriptArgs.prototype.clearDryRun = function() {
3988
- return jspb.Message.setField(this, 2, undefined);
4040
+ return jspb.Message.setField(this, 3, undefined);
3989
4041
  };
3990
4042
 
3991
4043
 
@@ -3994,7 +4046,7 @@ proto.api_container_api.RunStarlarkScriptArgs.prototype.clearDryRun = function()
3994
4046
  * @return {boolean}
3995
4047
  */
3996
4048
  proto.api_container_api.RunStarlarkScriptArgs.prototype.hasDryRun = function() {
3997
- return jspb.Message.getField(this, 2) != null;
4049
+ return jspb.Message.getField(this, 3) != null;
3998
4050
  };
3999
4051
 
4000
4052
 
@@ -4361,7 +4413,7 @@ proto.api_container_api.RunStarlarkPackageArgs.prototype.hasDryRun = function()
4361
4413
  * @private {!Array<!Array<number>>}
4362
4414
  * @const
4363
4415
  */
4364
- proto.api_container_api.StarlarkRunResponseLine.oneofGroups_ = [[1,2,3,4]];
4416
+ proto.api_container_api.StarlarkRunResponseLine.oneofGroups_ = [[1,2,3,4,5]];
4365
4417
 
4366
4418
  /**
4367
4419
  * @enum {number}
@@ -4371,7 +4423,8 @@ proto.api_container_api.StarlarkRunResponseLine.RunResponseLineCase = {
4371
4423
  INSTRUCTION: 1,
4372
4424
  ERROR: 2,
4373
4425
  PROGRESS_INFO: 3,
4374
- INSTRUCTION_RESULT: 4
4426
+ INSTRUCTION_RESULT: 4,
4427
+ RUN_FINISHED_EVENT: 5
4375
4428
  };
4376
4429
 
4377
4430
  /**
@@ -4415,7 +4468,8 @@ proto.api_container_api.StarlarkRunResponseLine.toObject = function(includeInsta
4415
4468
  instruction: (f = msg.getInstruction()) && proto.api_container_api.StarlarkInstruction.toObject(includeInstance, f),
4416
4469
  error: (f = msg.getError()) && proto.api_container_api.StarlarkError.toObject(includeInstance, f),
4417
4470
  progressInfo: (f = msg.getProgressInfo()) && proto.api_container_api.StarlarkRunProgress.toObject(includeInstance, f),
4418
- instructionResult: (f = msg.getInstructionResult()) && proto.api_container_api.StarlarkInstructionResult.toObject(includeInstance, f)
4471
+ instructionResult: (f = msg.getInstructionResult()) && proto.api_container_api.StarlarkInstructionResult.toObject(includeInstance, f),
4472
+ runFinishedEvent: (f = msg.getRunFinishedEvent()) && proto.api_container_api.StarlarkRunFinishedEvent.toObject(includeInstance, f)
4419
4473
  };
4420
4474
 
4421
4475
  if (includeInstance) {
@@ -4472,6 +4526,11 @@ proto.api_container_api.StarlarkRunResponseLine.deserializeBinaryFromReader = fu
4472
4526
  reader.readMessage(value,proto.api_container_api.StarlarkInstructionResult.deserializeBinaryFromReader);
4473
4527
  msg.setInstructionResult(value);
4474
4528
  break;
4529
+ case 5:
4530
+ var value = new proto.api_container_api.StarlarkRunFinishedEvent;
4531
+ reader.readMessage(value,proto.api_container_api.StarlarkRunFinishedEvent.deserializeBinaryFromReader);
4532
+ msg.setRunFinishedEvent(value);
4533
+ break;
4475
4534
  default:
4476
4535
  reader.skipField();
4477
4536
  break;
@@ -4533,6 +4592,14 @@ proto.api_container_api.StarlarkRunResponseLine.serializeBinaryToWriter = functi
4533
4592
  proto.api_container_api.StarlarkInstructionResult.serializeBinaryToWriter
4534
4593
  );
4535
4594
  }
4595
+ f = message.getRunFinishedEvent();
4596
+ if (f != null) {
4597
+ writer.writeMessage(
4598
+ 5,
4599
+ f,
4600
+ proto.api_container_api.StarlarkRunFinishedEvent.serializeBinaryToWriter
4601
+ );
4602
+ }
4536
4603
  };
4537
4604
 
4538
4605
 
@@ -4684,6 +4751,43 @@ proto.api_container_api.StarlarkRunResponseLine.prototype.hasInstructionResult =
4684
4751
  };
4685
4752
 
4686
4753
 
4754
+ /**
4755
+ * optional StarlarkRunFinishedEvent run_finished_event = 5;
4756
+ * @return {?proto.api_container_api.StarlarkRunFinishedEvent}
4757
+ */
4758
+ proto.api_container_api.StarlarkRunResponseLine.prototype.getRunFinishedEvent = function() {
4759
+ return /** @type{?proto.api_container_api.StarlarkRunFinishedEvent} */ (
4760
+ jspb.Message.getWrapperField(this, proto.api_container_api.StarlarkRunFinishedEvent, 5));
4761
+ };
4762
+
4763
+
4764
+ /**
4765
+ * @param {?proto.api_container_api.StarlarkRunFinishedEvent|undefined} value
4766
+ * @return {!proto.api_container_api.StarlarkRunResponseLine} returns this
4767
+ */
4768
+ proto.api_container_api.StarlarkRunResponseLine.prototype.setRunFinishedEvent = function(value) {
4769
+ return jspb.Message.setOneofWrapperField(this, 5, proto.api_container_api.StarlarkRunResponseLine.oneofGroups_[0], value);
4770
+ };
4771
+
4772
+
4773
+ /**
4774
+ * Clears the message field making it undefined.
4775
+ * @return {!proto.api_container_api.StarlarkRunResponseLine} returns this
4776
+ */
4777
+ proto.api_container_api.StarlarkRunResponseLine.prototype.clearRunFinishedEvent = function() {
4778
+ return this.setRunFinishedEvent(undefined);
4779
+ };
4780
+
4781
+
4782
+ /**
4783
+ * Returns whether this field is set.
4784
+ * @return {boolean}
4785
+ */
4786
+ proto.api_container_api.StarlarkRunResponseLine.prototype.hasRunFinishedEvent = function() {
4787
+ return jspb.Message.getField(this, 5) != null;
4788
+ };
4789
+
4790
+
4687
4791
 
4688
4792
  /**
4689
4793
  * List of repeated fields within this message type.
@@ -6346,6 +6450,184 @@ proto.api_container_api.StarlarkRunProgress.prototype.setCurrentStepNumber = fun
6346
6450
 
6347
6451
 
6348
6452
 
6453
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6454
+ /**
6455
+ * Creates an object representation of this proto.
6456
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6457
+ * Optional fields that are not set will be set to undefined.
6458
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6459
+ * For the list of reserved names please see:
6460
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6461
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6462
+ * JSPB instance for transitional soy proto support:
6463
+ * http://goto/soy-param-migration
6464
+ * @return {!Object}
6465
+ */
6466
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.toObject = function(opt_includeInstance) {
6467
+ return proto.api_container_api.StarlarkRunFinishedEvent.toObject(opt_includeInstance, this);
6468
+ };
6469
+
6470
+
6471
+ /**
6472
+ * Static version of the {@see toObject} method.
6473
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6474
+ * the JSPB instance for transitional soy proto support:
6475
+ * http://goto/soy-param-migration
6476
+ * @param {!proto.api_container_api.StarlarkRunFinishedEvent} msg The msg instance to transform.
6477
+ * @return {!Object}
6478
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6479
+ */
6480
+ proto.api_container_api.StarlarkRunFinishedEvent.toObject = function(includeInstance, msg) {
6481
+ var f, obj = {
6482
+ isrunsuccessful: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
6483
+ serializedOutput: jspb.Message.getFieldWithDefault(msg, 2, "")
6484
+ };
6485
+
6486
+ if (includeInstance) {
6487
+ obj.$jspbMessageInstance = msg;
6488
+ }
6489
+ return obj;
6490
+ };
6491
+ }
6492
+
6493
+
6494
+ /**
6495
+ * Deserializes binary data (in protobuf wire format).
6496
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6497
+ * @return {!proto.api_container_api.StarlarkRunFinishedEvent}
6498
+ */
6499
+ proto.api_container_api.StarlarkRunFinishedEvent.deserializeBinary = function(bytes) {
6500
+ var reader = new jspb.BinaryReader(bytes);
6501
+ var msg = new proto.api_container_api.StarlarkRunFinishedEvent;
6502
+ return proto.api_container_api.StarlarkRunFinishedEvent.deserializeBinaryFromReader(msg, reader);
6503
+ };
6504
+
6505
+
6506
+ /**
6507
+ * Deserializes binary data (in protobuf wire format) from the
6508
+ * given reader into the given message object.
6509
+ * @param {!proto.api_container_api.StarlarkRunFinishedEvent} msg The message object to deserialize into.
6510
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6511
+ * @return {!proto.api_container_api.StarlarkRunFinishedEvent}
6512
+ */
6513
+ proto.api_container_api.StarlarkRunFinishedEvent.deserializeBinaryFromReader = function(msg, reader) {
6514
+ while (reader.nextField()) {
6515
+ if (reader.isEndGroup()) {
6516
+ break;
6517
+ }
6518
+ var field = reader.getFieldNumber();
6519
+ switch (field) {
6520
+ case 1:
6521
+ var value = /** @type {boolean} */ (reader.readBool());
6522
+ msg.setIsrunsuccessful(value);
6523
+ break;
6524
+ case 2:
6525
+ var value = /** @type {string} */ (reader.readString());
6526
+ msg.setSerializedOutput(value);
6527
+ break;
6528
+ default:
6529
+ reader.skipField();
6530
+ break;
6531
+ }
6532
+ }
6533
+ return msg;
6534
+ };
6535
+
6536
+
6537
+ /**
6538
+ * Serializes the message to binary data (in protobuf wire format).
6539
+ * @return {!Uint8Array}
6540
+ */
6541
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.serializeBinary = function() {
6542
+ var writer = new jspb.BinaryWriter();
6543
+ proto.api_container_api.StarlarkRunFinishedEvent.serializeBinaryToWriter(this, writer);
6544
+ return writer.getResultBuffer();
6545
+ };
6546
+
6547
+
6548
+ /**
6549
+ * Serializes the given message to binary data (in protobuf wire
6550
+ * format), writing to the given BinaryWriter.
6551
+ * @param {!proto.api_container_api.StarlarkRunFinishedEvent} message
6552
+ * @param {!jspb.BinaryWriter} writer
6553
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6554
+ */
6555
+ proto.api_container_api.StarlarkRunFinishedEvent.serializeBinaryToWriter = function(message, writer) {
6556
+ var f = undefined;
6557
+ f = message.getIsrunsuccessful();
6558
+ if (f) {
6559
+ writer.writeBool(
6560
+ 1,
6561
+ f
6562
+ );
6563
+ }
6564
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
6565
+ if (f != null) {
6566
+ writer.writeString(
6567
+ 2,
6568
+ f
6569
+ );
6570
+ }
6571
+ };
6572
+
6573
+
6574
+ /**
6575
+ * optional bool isRunSuccessful = 1;
6576
+ * @return {boolean}
6577
+ */
6578
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.getIsrunsuccessful = function() {
6579
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
6580
+ };
6581
+
6582
+
6583
+ /**
6584
+ * @param {boolean} value
6585
+ * @return {!proto.api_container_api.StarlarkRunFinishedEvent} returns this
6586
+ */
6587
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.setIsrunsuccessful = function(value) {
6588
+ return jspb.Message.setProto3BooleanField(this, 1, value);
6589
+ };
6590
+
6591
+
6592
+ /**
6593
+ * optional string serialized_output = 2;
6594
+ * @return {string}
6595
+ */
6596
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.getSerializedOutput = function() {
6597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6598
+ };
6599
+
6600
+
6601
+ /**
6602
+ * @param {string} value
6603
+ * @return {!proto.api_container_api.StarlarkRunFinishedEvent} returns this
6604
+ */
6605
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.setSerializedOutput = function(value) {
6606
+ return jspb.Message.setField(this, 2, value);
6607
+ };
6608
+
6609
+
6610
+ /**
6611
+ * Clears the field making it undefined.
6612
+ * @return {!proto.api_container_api.StarlarkRunFinishedEvent} returns this
6613
+ */
6614
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.clearSerializedOutput = function() {
6615
+ return jspb.Message.setField(this, 2, undefined);
6616
+ };
6617
+
6618
+
6619
+ /**
6620
+ * Returns whether this field is set.
6621
+ * @return {boolean}
6622
+ */
6623
+ proto.api_container_api.StarlarkRunFinishedEvent.prototype.hasSerializedOutput = function() {
6624
+ return jspb.Message.getField(this, 2) != null;
6625
+ };
6626
+
6627
+
6628
+
6629
+
6630
+
6349
6631
  if (jspb.Message.GENERATE_TO_OBJECT) {
6350
6632
  /**
6351
6633
  * Creates an object representation of this proto.
@@ -4,11 +4,7 @@
4
4
  * @public
5
5
  */
6
6
 
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
7
+ // GENERATED CODE -- DO NOT EDIT!
12
8
 
13
9
 
14
10
  /* eslint-disable */
@@ -45,7 +41,7 @@ proto.module_api.ExecutableModuleServiceClient =
45
41
  /**
46
42
  * @private @const {string} The hostname
47
43
  */
48
- this.hostname_ = hostname.replace(/\/+$/, '');
44
+ this.hostname_ = hostname;
49
45
 
50
46
  };
51
47
 
@@ -71,7 +67,7 @@ proto.module_api.ExecutableModuleServicePromiseClient =
71
67
  /**
72
68
  * @private @const {string} The hostname
73
69
  */
74
- this.hostname_ = hostname.replace(/\/+$/, '');
70
+ this.hostname_ = hostname;
75
71
 
76
72
  };
77
73
 
@@ -5,6 +5,7 @@ import type { ContainerConfig, FilesArtifactUUID } from "../services/container_c
5
5
  import type { ServiceID } from "../services/service";
6
6
  import { ServiceContext } from "../services/service_context";
7
7
  import type { PartitionConnection } from "./partition_connection";
8
+ import { ServiceInfo as ServiceInfoSimple } from './../services/service';
8
9
  import { TemplateAndData } from "./template_and_data";
9
10
  import { Readable } from "stream";
10
11
  export declare type EnclaveID = string;
@@ -21,7 +22,7 @@ export declare class EnclaveContext {
21
22
  loadModule(moduleId: ModuleID, image: string, serializedParams: string): Promise<Result<ModuleContext, Error>>;
22
23
  unloadModule(moduleId: ModuleID): Promise<Result<null, Error>>;
23
24
  getModuleContext(moduleId: ModuleID): Promise<Result<ModuleContext, Error>>;
24
- runStarlarkScript(serializedStartosisScript: string, dryRun: boolean): Promise<Result<Readable, Error>>;
25
+ runStarlarkScript(serializedStartosisScript: string, serializedParams: string, dryRun: boolean): Promise<Result<Readable, Error>>;
25
26
  runStarlarkPackage(packageRootPath: string, serializedParams: string, dryRun: boolean): Promise<Result<Readable, Error>>;
26
27
  runStarlarkRemotePackage(moduleId: string, serializedParams: string, dryRun: boolean): Promise<Result<Readable, Error>>;
27
28
  addService(serviceId: ServiceID, containerConfig: ContainerConfig): Promise<Result<ServiceContext, Error>>;
@@ -33,7 +34,7 @@ export declare class EnclaveContext {
33
34
  repartitionNetwork(partitionServices: Map<PartitionID, Set<ServiceID>>, partitionConnections: Map<PartitionID, Map<PartitionID, PartitionConnection>>, defaultConnection: PartitionConnection): Promise<Result<null, Error>>;
34
35
  waitForHttpGetEndpointAvailability(serviceId: ServiceID, port: number, path: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): Promise<Result<null, Error>>;
35
36
  waitForHttpPostEndpointAvailability(serviceId: ServiceID, port: number, path: string, requestBody: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): Promise<Result<null, Error>>;
36
- getServices(): Promise<Result<Set<ServiceID>, Error>>;
37
+ getServices(): Promise<Result<Set<ServiceInfoSimple>, Error>>;
37
38
  getModules(): Promise<Result<Set<ModuleID>, Error>>;
38
39
  uploadFiles(pathToArchive: string): Promise<Result<FilesArtifactUUID, Error>>;
39
40
  storeWebFiles(url: string): Promise<Result<FilesArtifactUUID, Error>>;
@@ -24,6 +24,7 @@ const constructor_calls_1 = require("../constructor_calls");
24
24
  const service_context_1 = require("../services/service_context");
25
25
  const port_spec_1 = require("../services/port_spec");
26
26
  const api_container_service_pb_1 = require("../../kurtosis_core_rpc_api_bindings/api_container_service_pb");
27
+ const service_1 = require("./../services/service");
27
28
  const path = require("path");
28
29
  const kurtosis_yaml_1 = require("./kurtosis_yaml");
29
30
  // This will always resolve to the default partition ID (regardless of whether such a partition exists in the enclave,
@@ -139,10 +140,11 @@ class EnclaveContext {
139
140
  return (0, neverthrow_1.ok)(moduleCtx);
140
141
  });
141
142
  }
142
- runStarlarkScript(serializedStartosisScript, dryRun) {
143
+ runStarlarkScript(serializedStartosisScript, serializedParams, dryRun) {
143
144
  return __awaiter(this, void 0, void 0, function* () {
144
145
  const args = new api_container_service_pb_1.RunStarlarkScriptArgs();
145
146
  args.setSerializedScript(serializedStartosisScript);
147
+ args.setSerializedParams(serializedParams);
146
148
  args.setDryRun(dryRun);
147
149
  const scriptRunResult = yield this.backend.runStarlarkScript(args);
148
150
  if (scriptRunResult.isErr()) {
@@ -418,11 +420,11 @@ class EnclaveContext {
418
420
  return (0, neverthrow_1.err)(getServicesResponseResult.error);
419
421
  }
420
422
  const getServicesResponse = getServicesResponseResult.value;
421
- const serviceIDs = new Set();
423
+ const serviceInfos = new Set();
422
424
  getServicesResponse.getServiceInfoMap().forEach((value, key) => {
423
- serviceIDs.add(key);
425
+ serviceInfos.add(new service_1.ServiceInfo(key, value.getServiceGuid()));
424
426
  });
425
- return (0, neverthrow_1.ok)(serviceIDs);
427
+ return (0, neverthrow_1.ok)(serviceInfos);
426
428
  });
427
429
  }
428
430
  // Docs available at https://docs.kurtosistech.com/kurtosis-core/lib-documentation
@@ -14,7 +14,7 @@ const fs = require("fs");
14
14
  const neverthrow_1 = require("neverthrow");
15
15
  const yaml = require("js-yaml");
16
16
  const enclave_context_1 = require("./enclave_context");
17
- const DEPENDENCIES_URL = "https://docs.kurtosis.com/reference/starlark-reference/#dependencies";
17
+ const PACKAGES_URL = "https://docs.kurtosis.com/reference/packages";
18
18
  class KurtosisYaml {
19
19
  constructor(name) {
20
20
  this.name = name;
@@ -26,7 +26,7 @@ function parseKurtosisYaml(kurtosisYamlFilepath) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  // check if the yml file actually exists
28
28
  if (!fs.existsSync(kurtosisYamlFilepath)) {
29
- return (0, neverthrow_1.err)(new Error(`Couldn't find a '${enclave_context_1.KURTOSIS_YAML_FILENAME}' in the root of the package at '${kurtosisYamlFilepath}'. Packages are expected to have a '${enclave_context_1.KURTOSIS_YAML_FILENAME}' at root; have a look at '${DEPENDENCIES_URL}' for more`));
29
+ return (0, neverthrow_1.err)(new Error(`Couldn't find a '${enclave_context_1.KURTOSIS_YAML_FILENAME}' in the root of the package at '${kurtosisYamlFilepath}'. Packages are expected to have a '${enclave_context_1.KURTOSIS_YAML_FILENAME}' at root; have a look at '${PACKAGES_URL}' for more`));
30
30
  }
31
31
  let kurtosisYamlFile;
32
32
  try {
@@ -1,2 +1,9 @@
1
1
  export declare type ServiceID = string;
2
2
  export declare type ServiceGUID = string;
3
+ export declare class ServiceInfo {
4
+ private readonly serviceId;
5
+ private readonly serviceGuid;
6
+ constructor(serviceId: ServiceID, serviceGuid: ServiceGUID);
7
+ getServiceId(): ServiceID;
8
+ getServiceGuid(): ServiceGUID;
9
+ }
@@ -4,3 +4,17 @@
4
4
  * All Rights Reserved.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.ServiceInfo = void 0;
8
+ class ServiceInfo {
9
+ constructor(serviceId, serviceGuid) {
10
+ this.serviceId = serviceId;
11
+ this.serviceGuid = serviceGuid;
12
+ }
13
+ getServiceId() {
14
+ return this.serviceId;
15
+ }
16
+ getServiceGuid() {
17
+ return this.serviceGuid;
18
+ }
19
+ }
20
+ exports.ServiceInfo = ServiceInfo;
package/build/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { KURTOSIS_VERSION } from "./kurtosis_version/kurtosis_version";
2
2
  export type { FilesArtifactUUID, ContainerConfig } from "./core/lib/services/container_config";
3
3
  export { ContainerConfigBuilder } from "./core/lib/services/container_config";
4
- export type { ServiceID, ServiceGUID } from "./core/lib/services/service";
4
+ export type { ServiceID, ServiceGUID, ServiceInfo } from "./core/lib/services/service";
5
5
  export { ServiceContext } from "./core/lib/services/service_context";
6
6
  export { PortSpec, PortProtocol } from "./core/lib/services/port_spec";
7
7
  export { EnclaveContext } from "./core/lib/enclaves/enclave_context";
@@ -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.57.0";
7
+ exports.KURTOSIS_VERSION = "0.57.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.57.0",
4
+ "version": "0.57.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",