kurtosis-sdk 0.82.21 → 0.82.23
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 +5 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb.js +34 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.d.ts +12 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb.js +61 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.d.ts +36 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.js +284 -0
- package/build/core/kurtosis_core_rpc_api_bindings/connect/api_container_service_connect.d.ts +12 -1
- package/build/core/kurtosis_core_rpc_api_bindings/connect/api_container_service_connect.js +12 -1
- package/build/core/kurtosis_core_rpc_api_bindings/connect/api_container_service_pb.d.ts +67 -4
- package/build/core/kurtosis_core_rpc_api_bindings/connect/api_container_service_pb.js +31 -4
- package/build/core/lib/enclaves/enclave_context.d.ts +2 -1
- package/build/core/lib/enclaves/enclave_context.js +13 -0
- package/build/core/lib/enclaves/generic_api_container_client.d.ts +2 -1
- package/build/core/lib/enclaves/grpc_node_api_container_client.d.ts +2 -1
- package/build/core/lib/enclaves/grpc_node_api_container_client.js +25 -0
- package/build/kurtosis_version/kurtosis_version.js +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ interface IApiContainerServiceService extends grpc.ServiceDefinition<grpc.Untype
|
|
|
22
22
|
storeFilesArtifactFromService: grpc.MethodDefinition<api_container_service_pb.StoreFilesArtifactFromServiceArgs, api_container_service_pb.StoreFilesArtifactFromServiceResponse>;
|
|
23
23
|
listFilesArtifactNamesAndUuids: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
24
24
|
inspectFilesArtifactContents: grpc.MethodDefinition<api_container_service_pb.InspectFilesArtifactContentsRequest, api_container_service_pb.InspectFilesArtifactContentsResponse>;
|
|
25
|
+
connectServices: grpc.MethodDefinition<api_container_service_pb.ConnectServicesArgs, api_container_service_pb.ConnectServicesResponse>;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export const ApiContainerServiceService: IApiContainerServiceService;
|
|
@@ -41,6 +42,7 @@ export interface IApiContainerServiceServer extends grpc.UntypedServiceImplement
|
|
|
41
42
|
storeFilesArtifactFromService: grpc.handleUnaryCall<api_container_service_pb.StoreFilesArtifactFromServiceArgs, api_container_service_pb.StoreFilesArtifactFromServiceResponse>;
|
|
42
43
|
listFilesArtifactNamesAndUuids: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
43
44
|
inspectFilesArtifactContents: grpc.handleUnaryCall<api_container_service_pb.InspectFilesArtifactContentsRequest, api_container_service_pb.InspectFilesArtifactContentsResponse>;
|
|
45
|
+
connectServices: grpc.handleUnaryCall<api_container_service_pb.ConnectServicesArgs, api_container_service_pb.ConnectServicesResponse>;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
export class ApiContainerServiceClient extends grpc.Client {
|
|
@@ -84,4 +86,7 @@ export class ApiContainerServiceClient extends grpc.Client {
|
|
|
84
86
|
inspectFilesArtifactContents(argument: api_container_service_pb.InspectFilesArtifactContentsRequest, callback: grpc.requestCallback<api_container_service_pb.InspectFilesArtifactContentsResponse>): grpc.ClientUnaryCall;
|
|
85
87
|
inspectFilesArtifactContents(argument: api_container_service_pb.InspectFilesArtifactContentsRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.InspectFilesArtifactContentsResponse>): grpc.ClientUnaryCall;
|
|
86
88
|
inspectFilesArtifactContents(argument: api_container_service_pb.InspectFilesArtifactContentsRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.InspectFilesArtifactContentsResponse>): grpc.ClientUnaryCall;
|
|
89
|
+
connectServices(argument: api_container_service_pb.ConnectServicesArgs, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
|
|
90
|
+
connectServices(argument: api_container_service_pb.ConnectServicesArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
|
|
91
|
+
connectServices(argument: api_container_service_pb.ConnectServicesArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ConnectServicesResponse>): grpc.ClientUnaryCall;
|
|
87
92
|
}
|
|
@@ -5,6 +5,28 @@ var grpc = require('@grpc/grpc-js');
|
|
|
5
5
|
var api_container_service_pb = require('./api_container_service_pb.js');
|
|
6
6
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
7
7
|
|
|
8
|
+
function serialize_api_container_api_ConnectServicesArgs(arg) {
|
|
9
|
+
if (!(arg instanceof api_container_service_pb.ConnectServicesArgs)) {
|
|
10
|
+
throw new Error('Expected argument of type api_container_api.ConnectServicesArgs');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_api_container_api_ConnectServicesArgs(buffer_arg) {
|
|
16
|
+
return api_container_service_pb.ConnectServicesArgs.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_api_container_api_ConnectServicesResponse(arg) {
|
|
20
|
+
if (!(arg instanceof api_container_service_pb.ConnectServicesResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type api_container_api.ConnectServicesResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_api_container_api_ConnectServicesResponse(buffer_arg) {
|
|
27
|
+
return api_container_service_pb.ConnectServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
8
30
|
function serialize_api_container_api_DownloadFilesArtifactArgs(arg) {
|
|
9
31
|
if (!(arg instanceof api_container_service_pb.DownloadFilesArtifactArgs)) {
|
|
10
32
|
throw new Error('Expected argument of type api_container_api.DownloadFilesArtifactArgs');
|
|
@@ -404,6 +426,18 @@ storeFilesArtifactFromService: {
|
|
|
404
426
|
responseSerialize: serialize_api_container_api_InspectFilesArtifactContentsResponse,
|
|
405
427
|
responseDeserialize: deserialize_api_container_api_InspectFilesArtifactContentsResponse,
|
|
406
428
|
},
|
|
429
|
+
// User services port forwarding
|
|
430
|
+
connectServices: {
|
|
431
|
+
path: '/api_container_api.ApiContainerService/ConnectServices',
|
|
432
|
+
requestStream: false,
|
|
433
|
+
responseStream: false,
|
|
434
|
+
requestType: api_container_service_pb.ConnectServicesArgs,
|
|
435
|
+
responseType: api_container_service_pb.ConnectServicesResponse,
|
|
436
|
+
requestSerialize: serialize_api_container_api_ConnectServicesArgs,
|
|
437
|
+
requestDeserialize: deserialize_api_container_api_ConnectServicesArgs,
|
|
438
|
+
responseSerialize: serialize_api_container_api_ConnectServicesResponse,
|
|
439
|
+
responseDeserialize: deserialize_api_container_api_ConnectServicesResponse,
|
|
440
|
+
},
|
|
407
441
|
};
|
|
408
442
|
|
|
409
443
|
exports.ApiContainerServiceClient = grpc.makeGenericClientConstructor(ApiContainerServiceService);
|
|
@@ -87,6 +87,13 @@ export class ApiContainerServiceClient {
|
|
|
87
87
|
response: api_container_service_pb.InspectFilesArtifactContentsResponse) => void
|
|
88
88
|
): grpcWeb.ClientReadableStream<api_container_service_pb.InspectFilesArtifactContentsResponse>;
|
|
89
89
|
|
|
90
|
+
connectServices(
|
|
91
|
+
request: api_container_service_pb.ConnectServicesArgs,
|
|
92
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
93
|
+
callback: (err: grpcWeb.RpcError,
|
|
94
|
+
response: api_container_service_pb.ConnectServicesResponse) => void
|
|
95
|
+
): grpcWeb.ClientReadableStream<api_container_service_pb.ConnectServicesResponse>;
|
|
96
|
+
|
|
90
97
|
}
|
|
91
98
|
|
|
92
99
|
export class ApiContainerServicePromiseClient {
|
|
@@ -154,5 +161,10 @@ export class ApiContainerServicePromiseClient {
|
|
|
154
161
|
metadata?: grpcWeb.Metadata
|
|
155
162
|
): Promise<api_container_service_pb.InspectFilesArtifactContentsResponse>;
|
|
156
163
|
|
|
164
|
+
connectServices(
|
|
165
|
+
request: api_container_service_pb.ConnectServicesArgs,
|
|
166
|
+
metadata?: grpcWeb.Metadata
|
|
167
|
+
): Promise<api_container_service_pb.ConnectServicesResponse>;
|
|
168
|
+
|
|
157
169
|
}
|
|
158
170
|
|
|
@@ -793,5 +793,66 @@ proto.api_container_api.ApiContainerServicePromiseClient.prototype.inspectFilesA
|
|
|
793
793
|
};
|
|
794
794
|
|
|
795
795
|
|
|
796
|
+
/**
|
|
797
|
+
* @const
|
|
798
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
799
|
+
* !proto.api_container_api.ConnectServicesArgs,
|
|
800
|
+
* !proto.api_container_api.ConnectServicesResponse>}
|
|
801
|
+
*/
|
|
802
|
+
const methodDescriptor_ApiContainerService_ConnectServices = new grpc.web.MethodDescriptor(
|
|
803
|
+
'/api_container_api.ApiContainerService/ConnectServices',
|
|
804
|
+
grpc.web.MethodType.UNARY,
|
|
805
|
+
proto.api_container_api.ConnectServicesArgs,
|
|
806
|
+
proto.api_container_api.ConnectServicesResponse,
|
|
807
|
+
/**
|
|
808
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} request
|
|
809
|
+
* @return {!Uint8Array}
|
|
810
|
+
*/
|
|
811
|
+
function(request) {
|
|
812
|
+
return request.serializeBinary();
|
|
813
|
+
},
|
|
814
|
+
proto.api_container_api.ConnectServicesResponse.deserializeBinary
|
|
815
|
+
);
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} request The
|
|
820
|
+
* request proto
|
|
821
|
+
* @param {?Object<string, string>} metadata User defined
|
|
822
|
+
* call metadata
|
|
823
|
+
* @param {function(?grpc.web.RpcError, ?proto.api_container_api.ConnectServicesResponse)}
|
|
824
|
+
* callback The callback function(error, response)
|
|
825
|
+
* @return {!grpc.web.ClientReadableStream<!proto.api_container_api.ConnectServicesResponse>|undefined}
|
|
826
|
+
* The XHR Node Readable Stream
|
|
827
|
+
*/
|
|
828
|
+
proto.api_container_api.ApiContainerServiceClient.prototype.connectServices =
|
|
829
|
+
function(request, metadata, callback) {
|
|
830
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
831
|
+
'/api_container_api.ApiContainerService/ConnectServices',
|
|
832
|
+
request,
|
|
833
|
+
metadata || {},
|
|
834
|
+
methodDescriptor_ApiContainerService_ConnectServices,
|
|
835
|
+
callback);
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} request The
|
|
841
|
+
* request proto
|
|
842
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
843
|
+
* call metadata
|
|
844
|
+
* @return {!Promise<!proto.api_container_api.ConnectServicesResponse>}
|
|
845
|
+
* Promise that resolves to the response
|
|
846
|
+
*/
|
|
847
|
+
proto.api_container_api.ApiContainerServicePromiseClient.prototype.connectServices =
|
|
848
|
+
function(request, metadata) {
|
|
849
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
850
|
+
'/api_container_api.ApiContainerService/ConnectServices',
|
|
851
|
+
request,
|
|
852
|
+
metadata || {},
|
|
853
|
+
methodDescriptor_ApiContainerService_ConnectServices);
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
|
|
796
857
|
module.exports = proto.api_container_api;
|
|
797
858
|
|
|
@@ -1076,11 +1076,47 @@ export namespace FileArtifactContentsFileDescription {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
|
+
export class ConnectServicesArgs extends jspb.Message {
|
|
1080
|
+
getConnect(): Connect;
|
|
1081
|
+
setConnect(value: Connect): ConnectServicesArgs;
|
|
1082
|
+
|
|
1083
|
+
serializeBinary(): Uint8Array;
|
|
1084
|
+
toObject(includeInstance?: boolean): ConnectServicesArgs.AsObject;
|
|
1085
|
+
static toObject(includeInstance: boolean, msg: ConnectServicesArgs): ConnectServicesArgs.AsObject;
|
|
1086
|
+
static serializeBinaryToWriter(message: ConnectServicesArgs, writer: jspb.BinaryWriter): void;
|
|
1087
|
+
static deserializeBinary(bytes: Uint8Array): ConnectServicesArgs;
|
|
1088
|
+
static deserializeBinaryFromReader(message: ConnectServicesArgs, reader: jspb.BinaryReader): ConnectServicesArgs;
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
export namespace ConnectServicesArgs {
|
|
1092
|
+
export type AsObject = {
|
|
1093
|
+
connect: Connect,
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
export class ConnectServicesResponse extends jspb.Message {
|
|
1098
|
+
serializeBinary(): Uint8Array;
|
|
1099
|
+
toObject(includeInstance?: boolean): ConnectServicesResponse.AsObject;
|
|
1100
|
+
static toObject(includeInstance: boolean, msg: ConnectServicesResponse): ConnectServicesResponse.AsObject;
|
|
1101
|
+
static serializeBinaryToWriter(message: ConnectServicesResponse, writer: jspb.BinaryWriter): void;
|
|
1102
|
+
static deserializeBinary(bytes: Uint8Array): ConnectServicesResponse;
|
|
1103
|
+
static deserializeBinaryFromReader(message: ConnectServicesResponse, reader: jspb.BinaryReader): ConnectServicesResponse;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
export namespace ConnectServicesResponse {
|
|
1107
|
+
export type AsObject = {
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1079
1111
|
export enum ServiceStatus {
|
|
1080
1112
|
STOPPED = 0,
|
|
1081
1113
|
RUNNING = 1,
|
|
1082
1114
|
UNKNOWN = 2,
|
|
1083
1115
|
}
|
|
1116
|
+
export enum Connect {
|
|
1117
|
+
CONNECT = 0,
|
|
1118
|
+
NO_CONNECT = 1,
|
|
1119
|
+
}
|
|
1084
1120
|
export enum KurtosisFeatureFlag {
|
|
1085
1121
|
NO_INSTRUCTIONS_CACHING = 0,
|
|
1086
1122
|
}
|
|
@@ -23,6 +23,9 @@ var global = (function() {
|
|
|
23
23
|
|
|
24
24
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
25
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
26
|
+
goog.exportSymbol('proto.api_container_api.Connect', null, global);
|
|
27
|
+
goog.exportSymbol('proto.api_container_api.ConnectServicesArgs', null, global);
|
|
28
|
+
goog.exportSymbol('proto.api_container_api.ConnectServicesResponse', null, global);
|
|
26
29
|
goog.exportSymbol('proto.api_container_api.DataChunkMetadata', null, global);
|
|
27
30
|
goog.exportSymbol('proto.api_container_api.DownloadFilesArtifactArgs', null, global);
|
|
28
31
|
goog.exportSymbol('proto.api_container_api.ExecCommandArgs', null, global);
|
|
@@ -843,6 +846,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
843
846
|
*/
|
|
844
847
|
proto.api_container_api.FileArtifactContentsFileDescription.displayName = 'proto.api_container_api.FileArtifactContentsFileDescription';
|
|
845
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* Generated by JsPbCodeGenerator.
|
|
851
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
852
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
853
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
854
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
855
|
+
* valid.
|
|
856
|
+
* @extends {jspb.Message}
|
|
857
|
+
* @constructor
|
|
858
|
+
*/
|
|
859
|
+
proto.api_container_api.ConnectServicesArgs = function(opt_data) {
|
|
860
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
861
|
+
};
|
|
862
|
+
goog.inherits(proto.api_container_api.ConnectServicesArgs, jspb.Message);
|
|
863
|
+
if (goog.DEBUG && !COMPILED) {
|
|
864
|
+
/**
|
|
865
|
+
* @public
|
|
866
|
+
* @override
|
|
867
|
+
*/
|
|
868
|
+
proto.api_container_api.ConnectServicesArgs.displayName = 'proto.api_container_api.ConnectServicesArgs';
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Generated by JsPbCodeGenerator.
|
|
872
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
873
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
874
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
875
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
876
|
+
* valid.
|
|
877
|
+
* @extends {jspb.Message}
|
|
878
|
+
* @constructor
|
|
879
|
+
*/
|
|
880
|
+
proto.api_container_api.ConnectServicesResponse = function(opt_data) {
|
|
881
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
882
|
+
};
|
|
883
|
+
goog.inherits(proto.api_container_api.ConnectServicesResponse, jspb.Message);
|
|
884
|
+
if (goog.DEBUG && !COMPILED) {
|
|
885
|
+
/**
|
|
886
|
+
* @public
|
|
887
|
+
* @override
|
|
888
|
+
*/
|
|
889
|
+
proto.api_container_api.ConnectServicesResponse.displayName = 'proto.api_container_api.ConnectServicesResponse';
|
|
890
|
+
}
|
|
846
891
|
|
|
847
892
|
|
|
848
893
|
|
|
@@ -8505,6 +8550,237 @@ proto.api_container_api.FileArtifactContentsFileDescription.prototype.hasTextPre
|
|
|
8505
8550
|
};
|
|
8506
8551
|
|
|
8507
8552
|
|
|
8553
|
+
|
|
8554
|
+
|
|
8555
|
+
|
|
8556
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8557
|
+
/**
|
|
8558
|
+
* Creates an object representation of this proto.
|
|
8559
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8560
|
+
* Optional fields that are not set will be set to undefined.
|
|
8561
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8562
|
+
* For the list of reserved names please see:
|
|
8563
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8564
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8565
|
+
* JSPB instance for transitional soy proto support:
|
|
8566
|
+
* http://goto/soy-param-migration
|
|
8567
|
+
* @return {!Object}
|
|
8568
|
+
*/
|
|
8569
|
+
proto.api_container_api.ConnectServicesArgs.prototype.toObject = function(opt_includeInstance) {
|
|
8570
|
+
return proto.api_container_api.ConnectServicesArgs.toObject(opt_includeInstance, this);
|
|
8571
|
+
};
|
|
8572
|
+
|
|
8573
|
+
|
|
8574
|
+
/**
|
|
8575
|
+
* Static version of the {@see toObject} method.
|
|
8576
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8577
|
+
* the JSPB instance for transitional soy proto support:
|
|
8578
|
+
* http://goto/soy-param-migration
|
|
8579
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} msg The msg instance to transform.
|
|
8580
|
+
* @return {!Object}
|
|
8581
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8582
|
+
*/
|
|
8583
|
+
proto.api_container_api.ConnectServicesArgs.toObject = function(includeInstance, msg) {
|
|
8584
|
+
var f, obj = {
|
|
8585
|
+
connect: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
8586
|
+
};
|
|
8587
|
+
|
|
8588
|
+
if (includeInstance) {
|
|
8589
|
+
obj.$jspbMessageInstance = msg;
|
|
8590
|
+
}
|
|
8591
|
+
return obj;
|
|
8592
|
+
};
|
|
8593
|
+
}
|
|
8594
|
+
|
|
8595
|
+
|
|
8596
|
+
/**
|
|
8597
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8598
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8599
|
+
* @return {!proto.api_container_api.ConnectServicesArgs}
|
|
8600
|
+
*/
|
|
8601
|
+
proto.api_container_api.ConnectServicesArgs.deserializeBinary = function(bytes) {
|
|
8602
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8603
|
+
var msg = new proto.api_container_api.ConnectServicesArgs;
|
|
8604
|
+
return proto.api_container_api.ConnectServicesArgs.deserializeBinaryFromReader(msg, reader);
|
|
8605
|
+
};
|
|
8606
|
+
|
|
8607
|
+
|
|
8608
|
+
/**
|
|
8609
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8610
|
+
* given reader into the given message object.
|
|
8611
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} msg The message object to deserialize into.
|
|
8612
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8613
|
+
* @return {!proto.api_container_api.ConnectServicesArgs}
|
|
8614
|
+
*/
|
|
8615
|
+
proto.api_container_api.ConnectServicesArgs.deserializeBinaryFromReader = function(msg, reader) {
|
|
8616
|
+
while (reader.nextField()) {
|
|
8617
|
+
if (reader.isEndGroup()) {
|
|
8618
|
+
break;
|
|
8619
|
+
}
|
|
8620
|
+
var field = reader.getFieldNumber();
|
|
8621
|
+
switch (field) {
|
|
8622
|
+
case 1:
|
|
8623
|
+
var value = /** @type {!proto.api_container_api.Connect} */ (reader.readEnum());
|
|
8624
|
+
msg.setConnect(value);
|
|
8625
|
+
break;
|
|
8626
|
+
default:
|
|
8627
|
+
reader.skipField();
|
|
8628
|
+
break;
|
|
8629
|
+
}
|
|
8630
|
+
}
|
|
8631
|
+
return msg;
|
|
8632
|
+
};
|
|
8633
|
+
|
|
8634
|
+
|
|
8635
|
+
/**
|
|
8636
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8637
|
+
* @return {!Uint8Array}
|
|
8638
|
+
*/
|
|
8639
|
+
proto.api_container_api.ConnectServicesArgs.prototype.serializeBinary = function() {
|
|
8640
|
+
var writer = new jspb.BinaryWriter();
|
|
8641
|
+
proto.api_container_api.ConnectServicesArgs.serializeBinaryToWriter(this, writer);
|
|
8642
|
+
return writer.getResultBuffer();
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8648
|
+
* format), writing to the given BinaryWriter.
|
|
8649
|
+
* @param {!proto.api_container_api.ConnectServicesArgs} message
|
|
8650
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8651
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8652
|
+
*/
|
|
8653
|
+
proto.api_container_api.ConnectServicesArgs.serializeBinaryToWriter = function(message, writer) {
|
|
8654
|
+
var f = undefined;
|
|
8655
|
+
f = message.getConnect();
|
|
8656
|
+
if (f !== 0.0) {
|
|
8657
|
+
writer.writeEnum(
|
|
8658
|
+
1,
|
|
8659
|
+
f
|
|
8660
|
+
);
|
|
8661
|
+
}
|
|
8662
|
+
};
|
|
8663
|
+
|
|
8664
|
+
|
|
8665
|
+
/**
|
|
8666
|
+
* optional Connect connect = 1;
|
|
8667
|
+
* @return {!proto.api_container_api.Connect}
|
|
8668
|
+
*/
|
|
8669
|
+
proto.api_container_api.ConnectServicesArgs.prototype.getConnect = function() {
|
|
8670
|
+
return /** @type {!proto.api_container_api.Connect} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
8671
|
+
};
|
|
8672
|
+
|
|
8673
|
+
|
|
8674
|
+
/**
|
|
8675
|
+
* @param {!proto.api_container_api.Connect} value
|
|
8676
|
+
* @return {!proto.api_container_api.ConnectServicesArgs} returns this
|
|
8677
|
+
*/
|
|
8678
|
+
proto.api_container_api.ConnectServicesArgs.prototype.setConnect = function(value) {
|
|
8679
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
8680
|
+
};
|
|
8681
|
+
|
|
8682
|
+
|
|
8683
|
+
|
|
8684
|
+
|
|
8685
|
+
|
|
8686
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8687
|
+
/**
|
|
8688
|
+
* Creates an object representation of this proto.
|
|
8689
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8690
|
+
* Optional fields that are not set will be set to undefined.
|
|
8691
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8692
|
+
* For the list of reserved names please see:
|
|
8693
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8694
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8695
|
+
* JSPB instance for transitional soy proto support:
|
|
8696
|
+
* http://goto/soy-param-migration
|
|
8697
|
+
* @return {!Object}
|
|
8698
|
+
*/
|
|
8699
|
+
proto.api_container_api.ConnectServicesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8700
|
+
return proto.api_container_api.ConnectServicesResponse.toObject(opt_includeInstance, this);
|
|
8701
|
+
};
|
|
8702
|
+
|
|
8703
|
+
|
|
8704
|
+
/**
|
|
8705
|
+
* Static version of the {@see toObject} method.
|
|
8706
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8707
|
+
* the JSPB instance for transitional soy proto support:
|
|
8708
|
+
* http://goto/soy-param-migration
|
|
8709
|
+
* @param {!proto.api_container_api.ConnectServicesResponse} msg The msg instance to transform.
|
|
8710
|
+
* @return {!Object}
|
|
8711
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8712
|
+
*/
|
|
8713
|
+
proto.api_container_api.ConnectServicesResponse.toObject = function(includeInstance, msg) {
|
|
8714
|
+
var f, obj = {
|
|
8715
|
+
|
|
8716
|
+
};
|
|
8717
|
+
|
|
8718
|
+
if (includeInstance) {
|
|
8719
|
+
obj.$jspbMessageInstance = msg;
|
|
8720
|
+
}
|
|
8721
|
+
return obj;
|
|
8722
|
+
};
|
|
8723
|
+
}
|
|
8724
|
+
|
|
8725
|
+
|
|
8726
|
+
/**
|
|
8727
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8728
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8729
|
+
* @return {!proto.api_container_api.ConnectServicesResponse}
|
|
8730
|
+
*/
|
|
8731
|
+
proto.api_container_api.ConnectServicesResponse.deserializeBinary = function(bytes) {
|
|
8732
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8733
|
+
var msg = new proto.api_container_api.ConnectServicesResponse;
|
|
8734
|
+
return proto.api_container_api.ConnectServicesResponse.deserializeBinaryFromReader(msg, reader);
|
|
8735
|
+
};
|
|
8736
|
+
|
|
8737
|
+
|
|
8738
|
+
/**
|
|
8739
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8740
|
+
* given reader into the given message object.
|
|
8741
|
+
* @param {!proto.api_container_api.ConnectServicesResponse} msg The message object to deserialize into.
|
|
8742
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8743
|
+
* @return {!proto.api_container_api.ConnectServicesResponse}
|
|
8744
|
+
*/
|
|
8745
|
+
proto.api_container_api.ConnectServicesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8746
|
+
while (reader.nextField()) {
|
|
8747
|
+
if (reader.isEndGroup()) {
|
|
8748
|
+
break;
|
|
8749
|
+
}
|
|
8750
|
+
var field = reader.getFieldNumber();
|
|
8751
|
+
switch (field) {
|
|
8752
|
+
default:
|
|
8753
|
+
reader.skipField();
|
|
8754
|
+
break;
|
|
8755
|
+
}
|
|
8756
|
+
}
|
|
8757
|
+
return msg;
|
|
8758
|
+
};
|
|
8759
|
+
|
|
8760
|
+
|
|
8761
|
+
/**
|
|
8762
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8763
|
+
* @return {!Uint8Array}
|
|
8764
|
+
*/
|
|
8765
|
+
proto.api_container_api.ConnectServicesResponse.prototype.serializeBinary = function() {
|
|
8766
|
+
var writer = new jspb.BinaryWriter();
|
|
8767
|
+
proto.api_container_api.ConnectServicesResponse.serializeBinaryToWriter(this, writer);
|
|
8768
|
+
return writer.getResultBuffer();
|
|
8769
|
+
};
|
|
8770
|
+
|
|
8771
|
+
|
|
8772
|
+
/**
|
|
8773
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8774
|
+
* format), writing to the given BinaryWriter.
|
|
8775
|
+
* @param {!proto.api_container_api.ConnectServicesResponse} message
|
|
8776
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8777
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8778
|
+
*/
|
|
8779
|
+
proto.api_container_api.ConnectServicesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8780
|
+
var f = undefined;
|
|
8781
|
+
};
|
|
8782
|
+
|
|
8783
|
+
|
|
8508
8784
|
/**
|
|
8509
8785
|
* @enum {number}
|
|
8510
8786
|
*/
|
|
@@ -8514,6 +8790,14 @@ proto.api_container_api.ServiceStatus = {
|
|
|
8514
8790
|
UNKNOWN: 2
|
|
8515
8791
|
};
|
|
8516
8792
|
|
|
8793
|
+
/**
|
|
8794
|
+
* @enum {number}
|
|
8795
|
+
*/
|
|
8796
|
+
proto.api_container_api.Connect = {
|
|
8797
|
+
CONNECT: 0,
|
|
8798
|
+
NO_CONNECT: 1
|
|
8799
|
+
};
|
|
8800
|
+
|
|
8517
8801
|
/**
|
|
8518
8802
|
* @enum {number}
|
|
8519
8803
|
*/
|
package/build/core/kurtosis_core_rpc_api_bindings/connect/api_container_service_connect.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
|
|
6
|
+
import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
|
|
7
7
|
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -162,6 +162,17 @@ export declare const ApiContainerService: {
|
|
|
162
162
|
readonly O: typeof InspectFilesArtifactContentsResponse,
|
|
163
163
|
readonly kind: MethodKind.Unary,
|
|
164
164
|
},
|
|
165
|
+
/**
|
|
166
|
+
* User services port forwarding
|
|
167
|
+
*
|
|
168
|
+
* @generated from rpc api_container_api.ApiContainerService.ConnectServices
|
|
169
|
+
*/
|
|
170
|
+
readonly connectServices: {
|
|
171
|
+
readonly name: "ConnectServices",
|
|
172
|
+
readonly I: typeof ConnectServicesArgs,
|
|
173
|
+
readonly O: typeof ConnectServicesResponse,
|
|
174
|
+
readonly kind: MethodKind.Unary,
|
|
175
|
+
},
|
|
165
176
|
}
|
|
166
177
|
};
|
|
167
178
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
|
|
6
|
+
import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, InspectFilesArtifactContentsRequest, InspectFilesArtifactContentsResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StarlarkRunResponseLine, StoreFilesArtifactFromServiceArgs, StoreFilesArtifactFromServiceResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, StreamedDataChunk, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "./api_container_service_pb.js";
|
|
7
7
|
import { Empty, MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -162,6 +162,17 @@ export const ApiContainerService = {
|
|
|
162
162
|
O: InspectFilesArtifactContentsResponse,
|
|
163
163
|
kind: MethodKind.Unary,
|
|
164
164
|
},
|
|
165
|
+
/**
|
|
166
|
+
* User services port forwarding
|
|
167
|
+
*
|
|
168
|
+
* @generated from rpc api_container_api.ApiContainerService.ConnectServices
|
|
169
|
+
*/
|
|
170
|
+
connectServices: {
|
|
171
|
+
name: "ConnectServices",
|
|
172
|
+
I: ConnectServicesArgs,
|
|
173
|
+
O: ConnectServicesResponse,
|
|
174
|
+
kind: MethodKind.Unary,
|
|
175
|
+
},
|
|
165
176
|
}
|
|
166
177
|
};
|
|
167
178
|
|
|
@@ -26,6 +26,30 @@ export declare enum ServiceStatus {
|
|
|
26
26
|
UNKNOWN = 2,
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/**
|
|
30
|
+
* User services port forwarding
|
|
31
|
+
*
|
|
32
|
+
* @generated from enum api_container_api.Connect
|
|
33
|
+
*/
|
|
34
|
+
export declare enum Connect {
|
|
35
|
+
/**
|
|
36
|
+
* Best effort port forwarding
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: CONNECT = 0;
|
|
39
|
+
*/
|
|
40
|
+
CONNECT = 0,
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Port forwarding disabled
|
|
44
|
+
*
|
|
45
|
+
* Starlark run fails if the ports cannot be forwarded.
|
|
46
|
+
* MUST_CONNECT = 2;
|
|
47
|
+
*
|
|
48
|
+
* @generated from enum value: NO_CONNECT = 1;
|
|
49
|
+
*/
|
|
50
|
+
NO_CONNECT = 1,
|
|
51
|
+
}
|
|
52
|
+
|
|
29
53
|
/**
|
|
30
54
|
* @generated from enum api_container_api.KurtosisFeatureFlag
|
|
31
55
|
*/
|
|
@@ -183,10 +207,6 @@ export declare class ServiceInfo extends Message<ServiceInfo> {
|
|
|
183
207
|
}
|
|
184
208
|
|
|
185
209
|
/**
|
|
186
|
-
* ==============================================================================================
|
|
187
|
-
* Execute Starlark Arguments
|
|
188
|
-
* ==============================================================================================
|
|
189
|
-
*
|
|
190
210
|
* @generated from message api_container_api.RunStarlarkScriptArgs
|
|
191
211
|
*/
|
|
192
212
|
export declare class RunStarlarkScriptArgs extends Message<RunStarlarkScriptArgs> {
|
|
@@ -1493,3 +1513,46 @@ export declare class FileArtifactContentsFileDescription extends Message<FileArt
|
|
|
1493
1513
|
static equals(a: FileArtifactContentsFileDescription | PlainMessage<FileArtifactContentsFileDescription> | undefined, b: FileArtifactContentsFileDescription | PlainMessage<FileArtifactContentsFileDescription> | undefined): boolean;
|
|
1494
1514
|
}
|
|
1495
1515
|
|
|
1516
|
+
/**
|
|
1517
|
+
* @generated from message api_container_api.ConnectServicesArgs
|
|
1518
|
+
*/
|
|
1519
|
+
export declare class ConnectServicesArgs extends Message<ConnectServicesArgs> {
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from field: api_container_api.Connect connect = 1;
|
|
1522
|
+
*/
|
|
1523
|
+
connect: Connect;
|
|
1524
|
+
|
|
1525
|
+
constructor(data?: PartialMessage<ConnectServicesArgs>);
|
|
1526
|
+
|
|
1527
|
+
static readonly runtime: typeof proto3;
|
|
1528
|
+
static readonly typeName = "api_container_api.ConnectServicesArgs";
|
|
1529
|
+
static readonly fields: FieldList;
|
|
1530
|
+
|
|
1531
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectServicesArgs;
|
|
1532
|
+
|
|
1533
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectServicesArgs;
|
|
1534
|
+
|
|
1535
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectServicesArgs;
|
|
1536
|
+
|
|
1537
|
+
static equals(a: ConnectServicesArgs | PlainMessage<ConnectServicesArgs> | undefined, b: ConnectServicesArgs | PlainMessage<ConnectServicesArgs> | undefined): boolean;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
/**
|
|
1541
|
+
* @generated from message api_container_api.ConnectServicesResponse
|
|
1542
|
+
*/
|
|
1543
|
+
export declare class ConnectServicesResponse extends Message<ConnectServicesResponse> {
|
|
1544
|
+
constructor(data?: PartialMessage<ConnectServicesResponse>);
|
|
1545
|
+
|
|
1546
|
+
static readonly runtime: typeof proto3;
|
|
1547
|
+
static readonly typeName = "api_container_api.ConnectServicesResponse";
|
|
1548
|
+
static readonly fields: FieldList;
|
|
1549
|
+
|
|
1550
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectServicesResponse;
|
|
1551
|
+
|
|
1552
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectServicesResponse;
|
|
1553
|
+
|
|
1554
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectServicesResponse;
|
|
1555
|
+
|
|
1556
|
+
static equals(a: ConnectServicesResponse | PlainMessage<ConnectServicesResponse> | undefined, b: ConnectServicesResponse | PlainMessage<ConnectServicesResponse> | undefined): boolean;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
@@ -17,6 +17,19 @@ export const ServiceStatus = proto3.makeEnum(
|
|
|
17
17
|
],
|
|
18
18
|
);
|
|
19
19
|
|
|
20
|
+
/**
|
|
21
|
+
* User services port forwarding
|
|
22
|
+
*
|
|
23
|
+
* @generated from enum api_container_api.Connect
|
|
24
|
+
*/
|
|
25
|
+
export const Connect = proto3.makeEnum(
|
|
26
|
+
"api_container_api.Connect",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "CONNECT"},
|
|
29
|
+
{no: 1, name: "NO_CONNECT"},
|
|
30
|
+
],
|
|
31
|
+
);
|
|
32
|
+
|
|
20
33
|
/**
|
|
21
34
|
* @generated from enum api_container_api.KurtosisFeatureFlag
|
|
22
35
|
*/
|
|
@@ -74,10 +87,6 @@ export const ServiceInfo = proto3.makeMessageType(
|
|
|
74
87
|
);
|
|
75
88
|
|
|
76
89
|
/**
|
|
77
|
-
* ==============================================================================================
|
|
78
|
-
* Execute Starlark Arguments
|
|
79
|
-
* ==============================================================================================
|
|
80
|
-
*
|
|
81
90
|
* @generated from message api_container_api.RunStarlarkScriptArgs
|
|
82
91
|
*/
|
|
83
92
|
export const RunStarlarkScriptArgs = proto3.makeMessageType(
|
|
@@ -523,3 +532,21 @@ export const FileArtifactContentsFileDescription = proto3.makeMessageType(
|
|
|
523
532
|
],
|
|
524
533
|
);
|
|
525
534
|
|
|
535
|
+
/**
|
|
536
|
+
* @generated from message api_container_api.ConnectServicesArgs
|
|
537
|
+
*/
|
|
538
|
+
export const ConnectServicesArgs = proto3.makeMessageType(
|
|
539
|
+
"api_container_api.ConnectServicesArgs",
|
|
540
|
+
() => [
|
|
541
|
+
{ no: 1, name: "connect", kind: "enum", T: proto3.getEnumType(Connect) },
|
|
542
|
+
],
|
|
543
|
+
);
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* @generated from message api_container_api.ConnectServicesResponse
|
|
547
|
+
*/
|
|
548
|
+
export const ConnectServicesResponse = proto3.makeMessageType(
|
|
549
|
+
"api_container_api.ConnectServicesResponse",
|
|
550
|
+
[],
|
|
551
|
+
);
|
|
552
|
+
|
|
@@ -3,7 +3,7 @@ import { Result } from "neverthrow";
|
|
|
3
3
|
import type { FilesArtifactUUID } from "./files_artifact";
|
|
4
4
|
import type { ServiceName, ServiceUUID } from "../services/service";
|
|
5
5
|
import { ServiceContext } from "../services/service_context";
|
|
6
|
-
import { FilesArtifactNameAndUuid, KurtosisFeatureFlag } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
6
|
+
import { FilesArtifactNameAndUuid, KurtosisFeatureFlag, ConnectServicesResponse, Connect } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
7
7
|
import { Readable } from "stream";
|
|
8
8
|
import { StarlarkRunResult } from "./starlark_run_blocking";
|
|
9
9
|
import { ServiceIdentifiers } from "../services/service_identifiers";
|
|
@@ -30,6 +30,7 @@ export declare class EnclaveContext {
|
|
|
30
30
|
downloadFilesArtifact(identifier: string): Promise<Result<Uint8Array, Error>>;
|
|
31
31
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<ServiceIdentifiers, Error>>;
|
|
32
32
|
getAllFilesArtifactNamesAndUuids(): Promise<Result<FilesArtifactNameAndUuid[], Error>>;
|
|
33
|
+
connectServices(connect: Connect): Promise<Result<ConnectServicesResponse, Error>>;
|
|
33
34
|
private static convertApiPortsToServiceContextPorts;
|
|
34
35
|
private assembleRunStarlarkPackageArg;
|
|
35
36
|
}
|
|
@@ -254,6 +254,19 @@ class EnclaveContext {
|
|
|
254
254
|
return (0, neverthrow_1.ok)(getAllFilesArtifactsNamesAndUuidsResponseValue.getFileNamesAndUuidsList());
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
+
// Docs available at https://docs.kurtosis.com/sdk#connectservices-connect-string
|
|
258
|
+
connectServices(connect) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
const args = new api_container_service_pb_1.ConnectServicesArgs();
|
|
261
|
+
args.setConnect(connect);
|
|
262
|
+
const responseResult = yield this.backend.connectServices(args);
|
|
263
|
+
if (responseResult.isErr()) {
|
|
264
|
+
return (0, neverthrow_1.err)(responseResult.error);
|
|
265
|
+
}
|
|
266
|
+
const response = responseResult.value;
|
|
267
|
+
return (0, neverthrow_1.ok)(response);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
257
270
|
// ====================================================================================================
|
|
258
271
|
// Private helper functions
|
|
259
272
|
// ====================================================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
3
|
+
import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
4
4
|
import { EnclaveUUID } from "./enclave_context";
|
|
5
5
|
import { Readable } from "stream";
|
|
6
6
|
export interface GenericApiContainerClient {
|
|
@@ -17,4 +17,5 @@ export interface GenericApiContainerClient {
|
|
|
17
17
|
downloadFilesArtifact(downloadFilesArtifactArgs: DownloadFilesArtifactArgs): Promise<Result<Uint8Array, Error>>;
|
|
18
18
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
|
|
19
19
|
getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
|
|
20
|
+
connectServices(connectServicesArgs: ConnectServicesArgs): Promise<Result<ConnectServicesResponse, Error>>;
|
|
20
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
3
|
+
import { ConnectServicesArgs, ConnectServicesResponse, DownloadFilesArtifactArgs, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
4
4
|
import type { ApiContainerServiceClient as ApiContainerServiceClientNode } from "../../kurtosis_core_rpc_api_bindings/api_container_service_grpc_pb";
|
|
5
5
|
import { GenericApiContainerClient } from "./generic_api_container_client";
|
|
6
6
|
import { EnclaveUUID } from "./enclave_context";
|
|
@@ -24,4 +24,5 @@ export declare class GrpcNodeApiContainerClient implements GenericApiContainerCl
|
|
|
24
24
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
|
|
25
25
|
getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
|
|
26
26
|
private computeHexHash;
|
|
27
|
+
connectServices(connectServicesArgs: ConnectServicesArgs): Promise<Result<ConnectServicesResponse, Error>>;
|
|
27
28
|
}
|
|
@@ -305,5 +305,30 @@ class GrpcNodeApiContainerClient {
|
|
|
305
305
|
hasher.update(data);
|
|
306
306
|
return hasher.digest(HASH_ENCODING);
|
|
307
307
|
}
|
|
308
|
+
connectServices(connectServicesArgs) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
const promiseGetServices = new Promise((resolve, _unusedReject) => {
|
|
311
|
+
this.client.connectServices(connectServicesArgs, (error, response) => {
|
|
312
|
+
if (error === null) {
|
|
313
|
+
if (!response) {
|
|
314
|
+
resolve((0, neverthrow_1.err)(new Error("No error was encountered but the response was still falsy; this should never happen")));
|
|
315
|
+
}
|
|
316
|
+
else {
|
|
317
|
+
resolve((0, neverthrow_1.ok)(response));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
else {
|
|
321
|
+
resolve((0, neverthrow_1.err)(error));
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
const resultConnectServices = yield promiseGetServices;
|
|
326
|
+
if (resultConnectServices.isErr()) {
|
|
327
|
+
return (0, neverthrow_1.err)(resultConnectServices.error);
|
|
328
|
+
}
|
|
329
|
+
const connectServicesResponse = resultConnectServices.value;
|
|
330
|
+
return (0, neverthrow_1.ok)(connectServicesResponse);
|
|
331
|
+
});
|
|
332
|
+
}
|
|
308
333
|
}
|
|
309
334
|
exports.GrpcNodeApiContainerClient = GrpcNodeApiContainerClient;
|
|
@@ -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.82.
|
|
7
|
+
exports.KURTOSIS_VERSION = "0.82.23";
|
|
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.82.
|
|
4
|
+
"version": "0.82.23",
|
|
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",
|