kurtosis-sdk 0.68.13 → 0.69.0
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 +22 -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 +62 -1
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.d.ts +42 -0
- package/build/core/kurtosis_core_rpc_api_bindings/api_container_service_pb.js +371 -1
- package/build/core/lib/enclaves/enclave_context.d.ts +2 -0
- package/build/core/lib/enclaves/enclave_context.js +11 -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/core/lib/enclaves/grpc_web_api_container_client.d.ts +2 -1
- package/build/core/lib/enclaves/grpc_web_api_container_client.js +25 -0
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_grpc_web_pb.js +1 -1
- package/build/engine/kurtosis_engine_rpc_api_bindings/engine_service_pb.js +7 -1
- package/build/kurtosis_version/kurtosis_version.js +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ interface IApiContainerServiceService extends grpc.ServiceDefinition<grpc.Untype
|
|
|
25
25
|
storeWebFilesArtifact: grpc.MethodDefinition<api_container_service_pb.StoreWebFilesArtifactArgs, api_container_service_pb.StoreWebFilesArtifactResponse>;
|
|
26
26
|
storeFilesArtifactFromService: grpc.MethodDefinition<api_container_service_pb.StoreFilesArtifactFromServiceArgs, api_container_service_pb.StoreFilesArtifactFromServiceResponse>;
|
|
27
27
|
renderTemplatesToFilesArtifact: grpc.MethodDefinition<api_container_service_pb.RenderTemplatesToFilesArtifactArgs, api_container_service_pb.RenderTemplatesToFilesArtifactResponse>;
|
|
28
|
+
listFilesArtifactNamesAndUuids: grpc.MethodDefinition<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export const ApiContainerServiceService: IApiContainerServiceService;
|
|
@@ -47,6 +48,7 @@ export interface IApiContainerServiceServer extends grpc.UntypedServiceImplement
|
|
|
47
48
|
storeWebFilesArtifact: grpc.handleUnaryCall<api_container_service_pb.StoreWebFilesArtifactArgs, api_container_service_pb.StoreWebFilesArtifactResponse>;
|
|
48
49
|
storeFilesArtifactFromService: grpc.handleUnaryCall<api_container_service_pb.StoreFilesArtifactFromServiceArgs, api_container_service_pb.StoreFilesArtifactFromServiceResponse>;
|
|
49
50
|
renderTemplatesToFilesArtifact: grpc.handleUnaryCall<api_container_service_pb.RenderTemplatesToFilesArtifactArgs, api_container_service_pb.RenderTemplatesToFilesArtifactResponse>;
|
|
51
|
+
listFilesArtifactNamesAndUuids: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
export class ApiContainerServiceClient extends grpc.Client {
|
|
@@ -100,4 +102,7 @@ export class ApiContainerServiceClient extends grpc.Client {
|
|
|
100
102
|
renderTemplatesToFilesArtifact(argument: api_container_service_pb.RenderTemplatesToFilesArtifactArgs, callback: grpc.requestCallback<api_container_service_pb.RenderTemplatesToFilesArtifactResponse>): grpc.ClientUnaryCall;
|
|
101
103
|
renderTemplatesToFilesArtifact(argument: api_container_service_pb.RenderTemplatesToFilesArtifactArgs, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.RenderTemplatesToFilesArtifactResponse>): grpc.ClientUnaryCall;
|
|
102
104
|
renderTemplatesToFilesArtifact(argument: api_container_service_pb.RenderTemplatesToFilesArtifactArgs, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.RenderTemplatesToFilesArtifactResponse>): grpc.ClientUnaryCall;
|
|
105
|
+
listFilesArtifactNamesAndUuids(argument: google_protobuf_empty_pb.Empty, callback: grpc.requestCallback<api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>): grpc.ClientUnaryCall;
|
|
106
|
+
listFilesArtifactNamesAndUuids(argument: google_protobuf_empty_pb.Empty, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>): grpc.ClientUnaryCall;
|
|
107
|
+
listFilesArtifactNamesAndUuids(argument: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback<api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>): grpc.ClientUnaryCall;
|
|
103
108
|
}
|
|
@@ -82,6 +82,17 @@ function deserialize_api_container_api_GetServicesResponse(buffer_arg) {
|
|
|
82
82
|
return api_container_service_pb.GetServicesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
function serialize_api_container_api_ListFilesArtifactNamesAndUuidsResponse(arg) {
|
|
86
|
+
if (!(arg instanceof api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse)) {
|
|
87
|
+
throw new Error('Expected argument of type api_container_api.ListFilesArtifactNamesAndUuidsResponse');
|
|
88
|
+
}
|
|
89
|
+
return Buffer.from(arg.serializeBinary());
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function deserialize_api_container_api_ListFilesArtifactNamesAndUuidsResponse(buffer_arg) {
|
|
93
|
+
return api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
|
+
}
|
|
95
|
+
|
|
85
96
|
function serialize_api_container_api_PauseServiceArgs(arg) {
|
|
86
97
|
if (!(arg instanceof api_container_service_pb.PauseServiceArgs)) {
|
|
87
98
|
throw new Error('Expected argument of type api_container_api.PauseServiceArgs');
|
|
@@ -520,6 +531,17 @@ renderTemplatesToFilesArtifact: {
|
|
|
520
531
|
responseSerialize: serialize_api_container_api_RenderTemplatesToFilesArtifactResponse,
|
|
521
532
|
responseDeserialize: deserialize_api_container_api_RenderTemplatesToFilesArtifactResponse,
|
|
522
533
|
},
|
|
534
|
+
listFilesArtifactNamesAndUuids: {
|
|
535
|
+
path: '/api_container_api.ApiContainerService/ListFilesArtifactNamesAndUuids',
|
|
536
|
+
requestStream: false,
|
|
537
|
+
responseStream: false,
|
|
538
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
539
|
+
responseType: api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse,
|
|
540
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
541
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
542
|
+
responseSerialize: serialize_api_container_api_ListFilesArtifactNamesAndUuidsResponse,
|
|
543
|
+
responseDeserialize: deserialize_api_container_api_ListFilesArtifactNamesAndUuidsResponse,
|
|
544
|
+
},
|
|
523
545
|
};
|
|
524
546
|
|
|
525
547
|
exports.ApiContainerServiceClient = grpc.makeGenericClientConstructor(ApiContainerServiceService);
|
|
@@ -124,6 +124,13 @@ export class ApiContainerServiceClient {
|
|
|
124
124
|
response: api_container_service_pb.RenderTemplatesToFilesArtifactResponse) => void
|
|
125
125
|
): grpcWeb.ClientReadableStream<api_container_service_pb.RenderTemplatesToFilesArtifactResponse>;
|
|
126
126
|
|
|
127
|
+
listFilesArtifactNamesAndUuids(
|
|
128
|
+
request: google_protobuf_empty_pb.Empty,
|
|
129
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
130
|
+
callback: (err: grpcWeb.RpcError,
|
|
131
|
+
response: api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse) => void
|
|
132
|
+
): grpcWeb.ClientReadableStream<api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
133
|
+
|
|
127
134
|
}
|
|
128
135
|
|
|
129
136
|
export class ApiContainerServicePromiseClient {
|
|
@@ -216,5 +223,10 @@ export class ApiContainerServicePromiseClient {
|
|
|
216
223
|
metadata?: grpcWeb.Metadata
|
|
217
224
|
): Promise<api_container_service_pb.RenderTemplatesToFilesArtifactResponse>;
|
|
218
225
|
|
|
226
|
+
listFilesArtifactNamesAndUuids(
|
|
227
|
+
request: google_protobuf_empty_pb.Empty,
|
|
228
|
+
metadata?: grpcWeb.Metadata
|
|
229
|
+
): Promise<api_container_service_pb.ListFilesArtifactNamesAndUuidsResponse>;
|
|
230
|
+
|
|
219
231
|
}
|
|
220
232
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
8
|
// versions:
|
|
9
9
|
// protoc-gen-grpc-web v1.4.2
|
|
10
|
-
// protoc v3.
|
|
10
|
+
// protoc v3.19.1
|
|
11
11
|
// source: api_container_service.proto
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1103,5 +1103,66 @@ proto.api_container_api.ApiContainerServicePromiseClient.prototype.renderTemplat
|
|
|
1103
1103
|
};
|
|
1104
1104
|
|
|
1105
1105
|
|
|
1106
|
+
/**
|
|
1107
|
+
* @const
|
|
1108
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
1109
|
+
* !proto.google.protobuf.Empty,
|
|
1110
|
+
* !proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse>}
|
|
1111
|
+
*/
|
|
1112
|
+
const methodDescriptor_ApiContainerService_ListFilesArtifactNamesAndUuids = new grpc.web.MethodDescriptor(
|
|
1113
|
+
'/api_container_api.ApiContainerService/ListFilesArtifactNamesAndUuids',
|
|
1114
|
+
grpc.web.MethodType.UNARY,
|
|
1115
|
+
google_protobuf_empty_pb.Empty,
|
|
1116
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse,
|
|
1117
|
+
/**
|
|
1118
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
1119
|
+
* @return {!Uint8Array}
|
|
1120
|
+
*/
|
|
1121
|
+
function(request) {
|
|
1122
|
+
return request.serializeBinary();
|
|
1123
|
+
},
|
|
1124
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.deserializeBinary
|
|
1125
|
+
);
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
1130
|
+
* request proto
|
|
1131
|
+
* @param {?Object<string, string>} metadata User defined
|
|
1132
|
+
* call metadata
|
|
1133
|
+
* @param {function(?grpc.web.RpcError, ?proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse)}
|
|
1134
|
+
* callback The callback function(error, response)
|
|
1135
|
+
* @return {!grpc.web.ClientReadableStream<!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse>|undefined}
|
|
1136
|
+
* The XHR Node Readable Stream
|
|
1137
|
+
*/
|
|
1138
|
+
proto.api_container_api.ApiContainerServiceClient.prototype.listFilesArtifactNamesAndUuids =
|
|
1139
|
+
function(request, metadata, callback) {
|
|
1140
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
1141
|
+
'/api_container_api.ApiContainerService/ListFilesArtifactNamesAndUuids',
|
|
1142
|
+
request,
|
|
1143
|
+
metadata || {},
|
|
1144
|
+
methodDescriptor_ApiContainerService_ListFilesArtifactNamesAndUuids,
|
|
1145
|
+
callback);
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
1151
|
+
* request proto
|
|
1152
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
1153
|
+
* call metadata
|
|
1154
|
+
* @return {!Promise<!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse>}
|
|
1155
|
+
* Promise that resolves to the response
|
|
1156
|
+
*/
|
|
1157
|
+
proto.api_container_api.ApiContainerServicePromiseClient.prototype.listFilesArtifactNamesAndUuids =
|
|
1158
|
+
function(request, metadata) {
|
|
1159
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
1160
|
+
'/api_container_api.ApiContainerService/ListFilesArtifactNamesAndUuids',
|
|
1161
|
+
request,
|
|
1162
|
+
metadata || {},
|
|
1163
|
+
methodDescriptor_ApiContainerService_ListFilesArtifactNamesAndUuids);
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
|
|
1106
1167
|
module.exports = proto.api_container_api;
|
|
1107
1168
|
|
|
@@ -1236,3 +1236,45 @@ export namespace RenderTemplatesToFilesArtifactResponse {
|
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
|
+
export class FilesArtifactNameAndUuid extends jspb.Message {
|
|
1240
|
+
getFilename(): string;
|
|
1241
|
+
setFilename(value: string): FilesArtifactNameAndUuid;
|
|
1242
|
+
|
|
1243
|
+
getFileuuid(): string;
|
|
1244
|
+
setFileuuid(value: string): FilesArtifactNameAndUuid;
|
|
1245
|
+
|
|
1246
|
+
serializeBinary(): Uint8Array;
|
|
1247
|
+
toObject(includeInstance?: boolean): FilesArtifactNameAndUuid.AsObject;
|
|
1248
|
+
static toObject(includeInstance: boolean, msg: FilesArtifactNameAndUuid): FilesArtifactNameAndUuid.AsObject;
|
|
1249
|
+
static serializeBinaryToWriter(message: FilesArtifactNameAndUuid, writer: jspb.BinaryWriter): void;
|
|
1250
|
+
static deserializeBinary(bytes: Uint8Array): FilesArtifactNameAndUuid;
|
|
1251
|
+
static deserializeBinaryFromReader(message: FilesArtifactNameAndUuid, reader: jspb.BinaryReader): FilesArtifactNameAndUuid;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export namespace FilesArtifactNameAndUuid {
|
|
1255
|
+
export type AsObject = {
|
|
1256
|
+
filename: string,
|
|
1257
|
+
fileuuid: string,
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
export class ListFilesArtifactNamesAndUuidsResponse extends jspb.Message {
|
|
1262
|
+
getFileNamesAndUuidsList(): Array<FilesArtifactNameAndUuid>;
|
|
1263
|
+
setFileNamesAndUuidsList(value: Array<FilesArtifactNameAndUuid>): ListFilesArtifactNamesAndUuidsResponse;
|
|
1264
|
+
clearFileNamesAndUuidsList(): ListFilesArtifactNamesAndUuidsResponse;
|
|
1265
|
+
addFileNamesAndUuids(value?: FilesArtifactNameAndUuid, index?: number): FilesArtifactNameAndUuid;
|
|
1266
|
+
|
|
1267
|
+
serializeBinary(): Uint8Array;
|
|
1268
|
+
toObject(includeInstance?: boolean): ListFilesArtifactNamesAndUuidsResponse.AsObject;
|
|
1269
|
+
static toObject(includeInstance: boolean, msg: ListFilesArtifactNamesAndUuidsResponse): ListFilesArtifactNamesAndUuidsResponse.AsObject;
|
|
1270
|
+
static serializeBinaryToWriter(message: ListFilesArtifactNamesAndUuidsResponse, writer: jspb.BinaryWriter): void;
|
|
1271
|
+
static deserializeBinary(bytes: Uint8Array): ListFilesArtifactNamesAndUuidsResponse;
|
|
1272
|
+
static deserializeBinaryFromReader(message: ListFilesArtifactNamesAndUuidsResponse, reader: jspb.BinaryReader): ListFilesArtifactNamesAndUuidsResponse;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export namespace ListFilesArtifactNamesAndUuidsResponse {
|
|
1276
|
+
export type AsObject = {
|
|
1277
|
+
fileNamesAndUuidsList: Array<FilesArtifactNameAndUuid.AsObject>,
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
@@ -21,9 +27,11 @@ goog.exportSymbol('proto.api_container_api.DownloadFilesArtifactArgs', null, glo
|
|
|
21
27
|
goog.exportSymbol('proto.api_container_api.DownloadFilesArtifactResponse', null, global);
|
|
22
28
|
goog.exportSymbol('proto.api_container_api.ExecCommandArgs', null, global);
|
|
23
29
|
goog.exportSymbol('proto.api_container_api.ExecCommandResponse', null, global);
|
|
30
|
+
goog.exportSymbol('proto.api_container_api.FilesArtifactNameAndUuid', null, global);
|
|
24
31
|
goog.exportSymbol('proto.api_container_api.GetExistingAndHistoricalServiceIdentifiersResponse', null, global);
|
|
25
32
|
goog.exportSymbol('proto.api_container_api.GetServicesArgs', null, global);
|
|
26
33
|
goog.exportSymbol('proto.api_container_api.GetServicesResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse', null, global);
|
|
27
35
|
goog.exportSymbol('proto.api_container_api.PartitionConnectionInfo', null, global);
|
|
28
36
|
goog.exportSymbol('proto.api_container_api.PartitionConnections', null, global);
|
|
29
37
|
goog.exportSymbol('proto.api_container_api.PartitionServices', null, global);
|
|
@@ -1033,6 +1041,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1033
1041
|
*/
|
|
1034
1042
|
proto.api_container_api.RenderTemplatesToFilesArtifactResponse.displayName = 'proto.api_container_api.RenderTemplatesToFilesArtifactResponse';
|
|
1035
1043
|
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Generated by JsPbCodeGenerator.
|
|
1046
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1047
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1048
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1049
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1050
|
+
* valid.
|
|
1051
|
+
* @extends {jspb.Message}
|
|
1052
|
+
* @constructor
|
|
1053
|
+
*/
|
|
1054
|
+
proto.api_container_api.FilesArtifactNameAndUuid = function(opt_data) {
|
|
1055
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1056
|
+
};
|
|
1057
|
+
goog.inherits(proto.api_container_api.FilesArtifactNameAndUuid, jspb.Message);
|
|
1058
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1059
|
+
/**
|
|
1060
|
+
* @public
|
|
1061
|
+
* @override
|
|
1062
|
+
*/
|
|
1063
|
+
proto.api_container_api.FilesArtifactNameAndUuid.displayName = 'proto.api_container_api.FilesArtifactNameAndUuid';
|
|
1064
|
+
}
|
|
1065
|
+
/**
|
|
1066
|
+
* Generated by JsPbCodeGenerator.
|
|
1067
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1068
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1069
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1070
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1071
|
+
* valid.
|
|
1072
|
+
* @extends {jspb.Message}
|
|
1073
|
+
* @constructor
|
|
1074
|
+
*/
|
|
1075
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse = function(opt_data) {
|
|
1076
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.repeatedFields_, null);
|
|
1077
|
+
};
|
|
1078
|
+
goog.inherits(proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse, jspb.Message);
|
|
1079
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1080
|
+
/**
|
|
1081
|
+
* @public
|
|
1082
|
+
* @override
|
|
1083
|
+
*/
|
|
1084
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.displayName = 'proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse';
|
|
1085
|
+
}
|
|
1036
1086
|
|
|
1037
1087
|
|
|
1038
1088
|
|
|
@@ -9841,4 +9891,324 @@ proto.api_container_api.RenderTemplatesToFilesArtifactResponse.prototype.setUuid
|
|
|
9841
9891
|
};
|
|
9842
9892
|
|
|
9843
9893
|
|
|
9894
|
+
|
|
9895
|
+
|
|
9896
|
+
|
|
9897
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9898
|
+
/**
|
|
9899
|
+
* Creates an object representation of this proto.
|
|
9900
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9901
|
+
* Optional fields that are not set will be set to undefined.
|
|
9902
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9903
|
+
* For the list of reserved names please see:
|
|
9904
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
9905
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
9906
|
+
* JSPB instance for transitional soy proto support:
|
|
9907
|
+
* http://goto/soy-param-migration
|
|
9908
|
+
* @return {!Object}
|
|
9909
|
+
*/
|
|
9910
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.toObject = function(opt_includeInstance) {
|
|
9911
|
+
return proto.api_container_api.FilesArtifactNameAndUuid.toObject(opt_includeInstance, this);
|
|
9912
|
+
};
|
|
9913
|
+
|
|
9914
|
+
|
|
9915
|
+
/**
|
|
9916
|
+
* Static version of the {@see toObject} method.
|
|
9917
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
9918
|
+
* the JSPB instance for transitional soy proto support:
|
|
9919
|
+
* http://goto/soy-param-migration
|
|
9920
|
+
* @param {!proto.api_container_api.FilesArtifactNameAndUuid} msg The msg instance to transform.
|
|
9921
|
+
* @return {!Object}
|
|
9922
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9923
|
+
*/
|
|
9924
|
+
proto.api_container_api.FilesArtifactNameAndUuid.toObject = function(includeInstance, msg) {
|
|
9925
|
+
var f, obj = {
|
|
9926
|
+
filename: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
9927
|
+
fileuuid: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
9928
|
+
};
|
|
9929
|
+
|
|
9930
|
+
if (includeInstance) {
|
|
9931
|
+
obj.$jspbMessageInstance = msg;
|
|
9932
|
+
}
|
|
9933
|
+
return obj;
|
|
9934
|
+
};
|
|
9935
|
+
}
|
|
9936
|
+
|
|
9937
|
+
|
|
9938
|
+
/**
|
|
9939
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9940
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9941
|
+
* @return {!proto.api_container_api.FilesArtifactNameAndUuid}
|
|
9942
|
+
*/
|
|
9943
|
+
proto.api_container_api.FilesArtifactNameAndUuid.deserializeBinary = function(bytes) {
|
|
9944
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9945
|
+
var msg = new proto.api_container_api.FilesArtifactNameAndUuid;
|
|
9946
|
+
return proto.api_container_api.FilesArtifactNameAndUuid.deserializeBinaryFromReader(msg, reader);
|
|
9947
|
+
};
|
|
9948
|
+
|
|
9949
|
+
|
|
9950
|
+
/**
|
|
9951
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9952
|
+
* given reader into the given message object.
|
|
9953
|
+
* @param {!proto.api_container_api.FilesArtifactNameAndUuid} msg The message object to deserialize into.
|
|
9954
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9955
|
+
* @return {!proto.api_container_api.FilesArtifactNameAndUuid}
|
|
9956
|
+
*/
|
|
9957
|
+
proto.api_container_api.FilesArtifactNameAndUuid.deserializeBinaryFromReader = function(msg, reader) {
|
|
9958
|
+
while (reader.nextField()) {
|
|
9959
|
+
if (reader.isEndGroup()) {
|
|
9960
|
+
break;
|
|
9961
|
+
}
|
|
9962
|
+
var field = reader.getFieldNumber();
|
|
9963
|
+
switch (field) {
|
|
9964
|
+
case 1:
|
|
9965
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9966
|
+
msg.setFilename(value);
|
|
9967
|
+
break;
|
|
9968
|
+
case 2:
|
|
9969
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9970
|
+
msg.setFileuuid(value);
|
|
9971
|
+
break;
|
|
9972
|
+
default:
|
|
9973
|
+
reader.skipField();
|
|
9974
|
+
break;
|
|
9975
|
+
}
|
|
9976
|
+
}
|
|
9977
|
+
return msg;
|
|
9978
|
+
};
|
|
9979
|
+
|
|
9980
|
+
|
|
9981
|
+
/**
|
|
9982
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9983
|
+
* @return {!Uint8Array}
|
|
9984
|
+
*/
|
|
9985
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.serializeBinary = function() {
|
|
9986
|
+
var writer = new jspb.BinaryWriter();
|
|
9987
|
+
proto.api_container_api.FilesArtifactNameAndUuid.serializeBinaryToWriter(this, writer);
|
|
9988
|
+
return writer.getResultBuffer();
|
|
9989
|
+
};
|
|
9990
|
+
|
|
9991
|
+
|
|
9992
|
+
/**
|
|
9993
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9994
|
+
* format), writing to the given BinaryWriter.
|
|
9995
|
+
* @param {!proto.api_container_api.FilesArtifactNameAndUuid} message
|
|
9996
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9997
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9998
|
+
*/
|
|
9999
|
+
proto.api_container_api.FilesArtifactNameAndUuid.serializeBinaryToWriter = function(message, writer) {
|
|
10000
|
+
var f = undefined;
|
|
10001
|
+
f = message.getFilename();
|
|
10002
|
+
if (f.length > 0) {
|
|
10003
|
+
writer.writeString(
|
|
10004
|
+
1,
|
|
10005
|
+
f
|
|
10006
|
+
);
|
|
10007
|
+
}
|
|
10008
|
+
f = message.getFileuuid();
|
|
10009
|
+
if (f.length > 0) {
|
|
10010
|
+
writer.writeString(
|
|
10011
|
+
2,
|
|
10012
|
+
f
|
|
10013
|
+
);
|
|
10014
|
+
}
|
|
10015
|
+
};
|
|
10016
|
+
|
|
10017
|
+
|
|
10018
|
+
/**
|
|
10019
|
+
* optional string fileName = 1;
|
|
10020
|
+
* @return {string}
|
|
10021
|
+
*/
|
|
10022
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.getFilename = function() {
|
|
10023
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
10024
|
+
};
|
|
10025
|
+
|
|
10026
|
+
|
|
10027
|
+
/**
|
|
10028
|
+
* @param {string} value
|
|
10029
|
+
* @return {!proto.api_container_api.FilesArtifactNameAndUuid} returns this
|
|
10030
|
+
*/
|
|
10031
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.setFilename = function(value) {
|
|
10032
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10033
|
+
};
|
|
10034
|
+
|
|
10035
|
+
|
|
10036
|
+
/**
|
|
10037
|
+
* optional string fileUuid = 2;
|
|
10038
|
+
* @return {string}
|
|
10039
|
+
*/
|
|
10040
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.getFileuuid = function() {
|
|
10041
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
10042
|
+
};
|
|
10043
|
+
|
|
10044
|
+
|
|
10045
|
+
/**
|
|
10046
|
+
* @param {string} value
|
|
10047
|
+
* @return {!proto.api_container_api.FilesArtifactNameAndUuid} returns this
|
|
10048
|
+
*/
|
|
10049
|
+
proto.api_container_api.FilesArtifactNameAndUuid.prototype.setFileuuid = function(value) {
|
|
10050
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10051
|
+
};
|
|
10052
|
+
|
|
10053
|
+
|
|
10054
|
+
|
|
10055
|
+
/**
|
|
10056
|
+
* List of repeated fields within this message type.
|
|
10057
|
+
* @private {!Array<number>}
|
|
10058
|
+
* @const
|
|
10059
|
+
*/
|
|
10060
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.repeatedFields_ = [1];
|
|
10061
|
+
|
|
10062
|
+
|
|
10063
|
+
|
|
10064
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10065
|
+
/**
|
|
10066
|
+
* Creates an object representation of this proto.
|
|
10067
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10068
|
+
* Optional fields that are not set will be set to undefined.
|
|
10069
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10070
|
+
* For the list of reserved names please see:
|
|
10071
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
10072
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
10073
|
+
* JSPB instance for transitional soy proto support:
|
|
10074
|
+
* http://goto/soy-param-migration
|
|
10075
|
+
* @return {!Object}
|
|
10076
|
+
*/
|
|
10077
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
10078
|
+
return proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.toObject(opt_includeInstance, this);
|
|
10079
|
+
};
|
|
10080
|
+
|
|
10081
|
+
|
|
10082
|
+
/**
|
|
10083
|
+
* Static version of the {@see toObject} method.
|
|
10084
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
10085
|
+
* the JSPB instance for transitional soy proto support:
|
|
10086
|
+
* http://goto/soy-param-migration
|
|
10087
|
+
* @param {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse} msg The msg instance to transform.
|
|
10088
|
+
* @return {!Object}
|
|
10089
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10090
|
+
*/
|
|
10091
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.toObject = function(includeInstance, msg) {
|
|
10092
|
+
var f, obj = {
|
|
10093
|
+
fileNamesAndUuidsList: jspb.Message.toObjectList(msg.getFileNamesAndUuidsList(),
|
|
10094
|
+
proto.api_container_api.FilesArtifactNameAndUuid.toObject, includeInstance)
|
|
10095
|
+
};
|
|
10096
|
+
|
|
10097
|
+
if (includeInstance) {
|
|
10098
|
+
obj.$jspbMessageInstance = msg;
|
|
10099
|
+
}
|
|
10100
|
+
return obj;
|
|
10101
|
+
};
|
|
10102
|
+
}
|
|
10103
|
+
|
|
10104
|
+
|
|
10105
|
+
/**
|
|
10106
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10107
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10108
|
+
* @return {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse}
|
|
10109
|
+
*/
|
|
10110
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.deserializeBinary = function(bytes) {
|
|
10111
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10112
|
+
var msg = new proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse;
|
|
10113
|
+
return proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.deserializeBinaryFromReader(msg, reader);
|
|
10114
|
+
};
|
|
10115
|
+
|
|
10116
|
+
|
|
10117
|
+
/**
|
|
10118
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10119
|
+
* given reader into the given message object.
|
|
10120
|
+
* @param {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse} msg The message object to deserialize into.
|
|
10121
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10122
|
+
* @return {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse}
|
|
10123
|
+
*/
|
|
10124
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
10125
|
+
while (reader.nextField()) {
|
|
10126
|
+
if (reader.isEndGroup()) {
|
|
10127
|
+
break;
|
|
10128
|
+
}
|
|
10129
|
+
var field = reader.getFieldNumber();
|
|
10130
|
+
switch (field) {
|
|
10131
|
+
case 1:
|
|
10132
|
+
var value = new proto.api_container_api.FilesArtifactNameAndUuid;
|
|
10133
|
+
reader.readMessage(value,proto.api_container_api.FilesArtifactNameAndUuid.deserializeBinaryFromReader);
|
|
10134
|
+
msg.addFileNamesAndUuids(value);
|
|
10135
|
+
break;
|
|
10136
|
+
default:
|
|
10137
|
+
reader.skipField();
|
|
10138
|
+
break;
|
|
10139
|
+
}
|
|
10140
|
+
}
|
|
10141
|
+
return msg;
|
|
10142
|
+
};
|
|
10143
|
+
|
|
10144
|
+
|
|
10145
|
+
/**
|
|
10146
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10147
|
+
* @return {!Uint8Array}
|
|
10148
|
+
*/
|
|
10149
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.serializeBinary = function() {
|
|
10150
|
+
var writer = new jspb.BinaryWriter();
|
|
10151
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.serializeBinaryToWriter(this, writer);
|
|
10152
|
+
return writer.getResultBuffer();
|
|
10153
|
+
};
|
|
10154
|
+
|
|
10155
|
+
|
|
10156
|
+
/**
|
|
10157
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
10158
|
+
* format), writing to the given BinaryWriter.
|
|
10159
|
+
* @param {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse} message
|
|
10160
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10161
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
10162
|
+
*/
|
|
10163
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
10164
|
+
var f = undefined;
|
|
10165
|
+
f = message.getFileNamesAndUuidsList();
|
|
10166
|
+
if (f.length > 0) {
|
|
10167
|
+
writer.writeRepeatedMessage(
|
|
10168
|
+
1,
|
|
10169
|
+
f,
|
|
10170
|
+
proto.api_container_api.FilesArtifactNameAndUuid.serializeBinaryToWriter
|
|
10171
|
+
);
|
|
10172
|
+
}
|
|
10173
|
+
};
|
|
10174
|
+
|
|
10175
|
+
|
|
10176
|
+
/**
|
|
10177
|
+
* repeated FilesArtifactNameAndUuid file_names_and_uuids = 1;
|
|
10178
|
+
* @return {!Array<!proto.api_container_api.FilesArtifactNameAndUuid>}
|
|
10179
|
+
*/
|
|
10180
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.getFileNamesAndUuidsList = function() {
|
|
10181
|
+
return /** @type{!Array<!proto.api_container_api.FilesArtifactNameAndUuid>} */ (
|
|
10182
|
+
jspb.Message.getRepeatedWrapperField(this, proto.api_container_api.FilesArtifactNameAndUuid, 1));
|
|
10183
|
+
};
|
|
10184
|
+
|
|
10185
|
+
|
|
10186
|
+
/**
|
|
10187
|
+
* @param {!Array<!proto.api_container_api.FilesArtifactNameAndUuid>} value
|
|
10188
|
+
* @return {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse} returns this
|
|
10189
|
+
*/
|
|
10190
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.setFileNamesAndUuidsList = function(value) {
|
|
10191
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
10192
|
+
};
|
|
10193
|
+
|
|
10194
|
+
|
|
10195
|
+
/**
|
|
10196
|
+
* @param {!proto.api_container_api.FilesArtifactNameAndUuid=} opt_value
|
|
10197
|
+
* @param {number=} opt_index
|
|
10198
|
+
* @return {!proto.api_container_api.FilesArtifactNameAndUuid}
|
|
10199
|
+
*/
|
|
10200
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.addFileNamesAndUuids = function(opt_value, opt_index) {
|
|
10201
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.api_container_api.FilesArtifactNameAndUuid, opt_index);
|
|
10202
|
+
};
|
|
10203
|
+
|
|
10204
|
+
|
|
10205
|
+
/**
|
|
10206
|
+
* Clears the list making it empty but non-null.
|
|
10207
|
+
* @return {!proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse} returns this
|
|
10208
|
+
*/
|
|
10209
|
+
proto.api_container_api.ListFilesArtifactNamesAndUuidsResponse.prototype.clearFileNamesAndUuidsList = function() {
|
|
10210
|
+
return this.setFileNamesAndUuidsList([]);
|
|
10211
|
+
};
|
|
10212
|
+
|
|
10213
|
+
|
|
9844
10214
|
goog.object.extend(exports, proto.api_container_api);
|
|
@@ -3,6 +3,7 @@ import { Result } from "neverthrow";
|
|
|
3
3
|
import type { ContainerConfig, FilesArtifactUUID } from "../services/container_config";
|
|
4
4
|
import type { ServiceName, ServiceUUID } from "../services/service";
|
|
5
5
|
import { ServiceContext } from "../services/service_context";
|
|
6
|
+
import { FilesArtifactNameAndUuid } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
6
7
|
import { Readable } from "stream";
|
|
7
8
|
import { StarlarkRunResult } from "./starlark_run_blocking";
|
|
8
9
|
import { ServiceIdentifiers } from "../services/service_identifiers";
|
|
@@ -33,6 +34,7 @@ export declare class EnclaveContext {
|
|
|
33
34
|
storeWebFiles(url: string, name: string): Promise<Result<FilesArtifactUUID, Error>>;
|
|
34
35
|
downloadFilesArtifact(identifier: string): Promise<Result<Uint8Array, Error>>;
|
|
35
36
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<ServiceIdentifiers, Error>>;
|
|
37
|
+
getAllFilesArtifactNamesAndUuids(): Promise<Result<FilesArtifactNameAndUuid[], Error>>;
|
|
36
38
|
private static convertApiPortsToServiceContextPorts;
|
|
37
39
|
private assembleRunStarlarkPackageArg;
|
|
38
40
|
}
|
|
@@ -411,6 +411,17 @@ class EnclaveContext {
|
|
|
411
411
|
return (0, neverthrow_1.ok)(new service_identifiers_1.ServiceIdentifiers(getExistingAndHistoricalIdentifiersValue.getAllidentifiersList()));
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
+
// Docs available at https://docs.kurtosis.com/#getallfilesartifactnamesanduuids---filesartifactnameanduuid-filesartifactnamesanduuids
|
|
415
|
+
getAllFilesArtifactNamesAndUuids() {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const getAllFilesArtifactsNamesAndUuidsResponseResult = yield this.backend.getAllFilesArtifactNamesAndUuids();
|
|
418
|
+
if (getAllFilesArtifactsNamesAndUuidsResponseResult.isErr()) {
|
|
419
|
+
return (0, neverthrow_1.err)(getAllFilesArtifactsNamesAndUuidsResponseResult.error);
|
|
420
|
+
}
|
|
421
|
+
const getAllFilesArtifactsNamesAndUuidsResponseValue = getAllFilesArtifactsNamesAndUuidsResponseResult.value;
|
|
422
|
+
return (0, neverthrow_1.ok)(getAllFilesArtifactsNamesAndUuidsResponseValue.getFileNamesAndUuidsList());
|
|
423
|
+
});
|
|
424
|
+
}
|
|
414
425
|
// ====================================================================================================
|
|
415
426
|
// Private helper functions
|
|
416
427
|
// ====================================================================================================
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { DownloadFilesArtifactArgs, DownloadFilesArtifactResponse, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, PauseServiceArgs, RemoveServiceArgs, RemoveServiceResponse, RepartitionArgs, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StartServicesArgs, StartServicesResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UnpauseServiceArgs, UploadFilesArtifactArgs, UploadFilesArtifactResponse, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
3
|
+
import { DownloadFilesArtifactArgs, DownloadFilesArtifactResponse, ExecCommandArgs, ExecCommandResponse, GetExistingAndHistoricalServiceIdentifiersResponse, GetServicesArgs, GetServicesResponse, ListFilesArtifactNamesAndUuidsResponse, PauseServiceArgs, RemoveServiceArgs, RemoveServiceResponse, RepartitionArgs, RunStarlarkPackageArgs, RunStarlarkScriptArgs, StartServicesArgs, StartServicesResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, UnpauseServiceArgs, UploadFilesArtifactArgs, 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 {
|
|
@@ -21,4 +21,5 @@ export interface GenericApiContainerClient {
|
|
|
21
21
|
storeWebFilesArtifact(storeWebFilesArtifactArgs: StoreWebFilesArtifactArgs): Promise<Result<StoreWebFilesArtifactResponse, Error>>;
|
|
22
22
|
downloadFilesArtifact(downloadFilesArtifactArgs: DownloadFilesArtifactArgs): Promise<Result<DownloadFilesArtifactResponse, Error>>;
|
|
23
23
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
|
|
24
|
+
getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
|
|
24
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { StartServicesArgs, StartServicesResponse, RemoveServiceArgs, RepartitionArgs, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs, GetServicesResponse, ExecCommandArgs, ExecCommandResponse, PauseServiceArgs, UnpauseServiceArgs, UploadFilesArtifactArgs, UploadFilesArtifactResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, GetServicesArgs, RunStarlarkScriptArgs, RunStarlarkPackageArgs, DownloadFilesArtifactResponse, DownloadFilesArtifactArgs, GetExistingAndHistoricalServiceIdentifiersResponse } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
3
|
+
import { StartServicesArgs, StartServicesResponse, RemoveServiceArgs, RepartitionArgs, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs, GetServicesResponse, ExecCommandArgs, ExecCommandResponse, PauseServiceArgs, UnpauseServiceArgs, UploadFilesArtifactArgs, UploadFilesArtifactResponse, StoreWebFilesArtifactArgs, StoreWebFilesArtifactResponse, GetServicesArgs, RunStarlarkScriptArgs, RunStarlarkPackageArgs, DownloadFilesArtifactResponse, DownloadFilesArtifactArgs, GetExistingAndHistoricalServiceIdentifiersResponse, ListFilesArtifactNamesAndUuidsResponse } 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";
|
|
@@ -28,4 +28,5 @@ export declare class GrpcNodeApiContainerClient implements GenericApiContainerCl
|
|
|
28
28
|
storeWebFilesArtifact(storeWebFilesArtifactArgs: StoreWebFilesArtifactArgs): Promise<Result<StoreWebFilesArtifactResponse, Error>>;
|
|
29
29
|
downloadFilesArtifact(downloadFilesArtifactArgs: DownloadFilesArtifactArgs): Promise<Result<DownloadFilesArtifactResponse, Error>>;
|
|
30
30
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
|
|
31
|
+
getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
|
|
31
32
|
}
|
|
@@ -342,5 +342,30 @@ class GrpcNodeApiContainerClient {
|
|
|
342
342
|
return (0, neverthrow_1.ok)(getExistingAndHistoricalServiceIdentifiersResult.value);
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
+
getAllFilesArtifactNamesAndUuids() {
|
|
346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
+
const emptyArg = new google_protobuf_empty_pb.Empty();
|
|
348
|
+
const getAllFilesArtifactNamesAndUuidsPromise = new Promise((resolve, _unusedReject) => {
|
|
349
|
+
this.client.listFilesArtifactNamesAndUuids(emptyArg, {}, (error, response) => {
|
|
350
|
+
if (error === null) {
|
|
351
|
+
if (!response) {
|
|
352
|
+
resolve((0, neverthrow_1.err)(new Error("No error was encountered but the response was still falsy; this should never happen")));
|
|
353
|
+
}
|
|
354
|
+
else {
|
|
355
|
+
resolve((0, neverthrow_1.ok)(response));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
resolve((0, neverthrow_1.err)(error));
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
const getAllFilesArtifactNamesAndUuidsResult = yield getAllFilesArtifactNamesAndUuidsPromise;
|
|
364
|
+
if (getAllFilesArtifactNamesAndUuidsResult.isErr()) {
|
|
365
|
+
return (0, neverthrow_1.err)(getAllFilesArtifactNamesAndUuidsResult.error);
|
|
366
|
+
}
|
|
367
|
+
return (0, neverthrow_1.ok)(getAllFilesArtifactNamesAndUuidsResult.value);
|
|
368
|
+
});
|
|
369
|
+
}
|
|
345
370
|
}
|
|
346
371
|
exports.GrpcNodeApiContainerClient = GrpcNodeApiContainerClient;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Result } from "neverthrow";
|
|
3
|
-
import { StartServicesArgs, StartServicesResponse, RemoveServiceArgs, RepartitionArgs, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs, GetServicesResponse, ExecCommandArgs, ExecCommandResponse, PauseServiceArgs, UnpauseServiceArgs, UploadFilesArtifactArgs, UploadFilesArtifactResponse, StoreWebFilesArtifactResponse, StoreWebFilesArtifactArgs, GetServicesArgs, RemoveServiceResponse, RunStarlarkScriptArgs, RunStarlarkPackageArgs, DownloadFilesArtifactArgs, DownloadFilesArtifactResponse, GetExistingAndHistoricalServiceIdentifiersResponse } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
3
|
+
import { StartServicesArgs, StartServicesResponse, RemoveServiceArgs, RepartitionArgs, WaitForHttpGetEndpointAvailabilityArgs, WaitForHttpPostEndpointAvailabilityArgs, GetServicesResponse, ExecCommandArgs, ExecCommandResponse, PauseServiceArgs, UnpauseServiceArgs, UploadFilesArtifactArgs, UploadFilesArtifactResponse, StoreWebFilesArtifactResponse, StoreWebFilesArtifactArgs, GetServicesArgs, RemoveServiceResponse, RunStarlarkScriptArgs, RunStarlarkPackageArgs, DownloadFilesArtifactArgs, DownloadFilesArtifactResponse, GetExistingAndHistoricalServiceIdentifiersResponse, ListFilesArtifactNamesAndUuidsResponse } from "../../kurtosis_core_rpc_api_bindings/api_container_service_pb";
|
|
4
4
|
import { ApiContainerServiceClient as ApiContainerServiceClientWeb } from "../../kurtosis_core_rpc_api_bindings/api_container_service_grpc_web_pb";
|
|
5
5
|
import { GenericApiContainerClient } from "./generic_api_container_client";
|
|
6
6
|
import { EnclaveUUID } from "./enclave_context";
|
|
@@ -27,5 +27,6 @@ export declare class GrpcWebApiContainerClient implements GenericApiContainerCli
|
|
|
27
27
|
storeWebFilesArtifact(storeWebFilesArtifactArgs: StoreWebFilesArtifactArgs): Promise<Result<StoreWebFilesArtifactResponse, Error>>;
|
|
28
28
|
downloadFilesArtifact(downloadFilesArtifactArgs: DownloadFilesArtifactArgs): Promise<Result<DownloadFilesArtifactResponse, Error>>;
|
|
29
29
|
getExistingAndHistoricalServiceIdentifiers(): Promise<Result<GetExistingAndHistoricalServiceIdentifiersResponse, Error>>;
|
|
30
|
+
getAllFilesArtifactNamesAndUuids(): Promise<Result<ListFilesArtifactNamesAndUuidsResponse, Error>>;
|
|
30
31
|
private forwardStarlarkRunResponseLinesStreamToReadable;
|
|
31
32
|
}
|
|
@@ -345,6 +345,31 @@ class GrpcWebApiContainerClient {
|
|
|
345
345
|
return (0, neverthrow_1.ok)(getExistingAndHistoricalServiceIdentifiersResult.value);
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
+
getAllFilesArtifactNamesAndUuids() {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
const emptyArg = new google_protobuf_empty_pb.Empty();
|
|
351
|
+
const getAllFilesArtifactNamesAndUuidsPromise = new Promise((resolve, _unusedReject) => {
|
|
352
|
+
this.client.listFilesArtifactNamesAndUuids(emptyArg, {}, (error, response) => {
|
|
353
|
+
if (error === null) {
|
|
354
|
+
if (!response) {
|
|
355
|
+
resolve((0, neverthrow_1.err)(new Error("No error was encountered but the response was still falsy; this should never happen")));
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
resolve((0, neverthrow_1.ok)(response));
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
else {
|
|
362
|
+
resolve((0, neverthrow_1.err)(error));
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
const getAllFilesArtifactNamesAndUuidsResult = yield getAllFilesArtifactNamesAndUuidsPromise;
|
|
367
|
+
if (getAllFilesArtifactNamesAndUuidsResult.isErr()) {
|
|
368
|
+
return (0, neverthrow_1.err)(getAllFilesArtifactNamesAndUuidsResult.error);
|
|
369
|
+
}
|
|
370
|
+
return (0, neverthrow_1.ok)(getAllFilesArtifactNamesAndUuidsResult.value);
|
|
371
|
+
});
|
|
372
|
+
}
|
|
348
373
|
forwardStarlarkRunResponseLinesStreamToReadable(incomingStream) {
|
|
349
374
|
const starlarkExecutionResponseLinesReadable = new stream_1.Readable({
|
|
350
375
|
objectMode: true,
|
|
@@ -13,7 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
var jspb = require('google-protobuf');
|
|
15
15
|
var goog = jspb;
|
|
16
|
-
var global =
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
17
23
|
|
|
18
24
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
19
25
|
goog.object.extend(proto, google_protobuf_empty_pb);
|
|
@@ -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.
|
|
7
|
+
exports.KURTOSIS_VERSION = "0.69.0";
|
|
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.
|
|
4
|
+
"version": "0.69.0",
|
|
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",
|