kurtosis-sdk 0.57.0 → 0.57.1
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/lib/enclaves/enclave_context.d.ts +2 -1
- package/build/core/lib/enclaves/enclave_context.js +4 -3
- package/build/core/lib/services/service.d.ts +7 -0
- package/build/core/lib/services/service.js +14 -0
- package/build/kurtosis_version/kurtosis_version.js +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import type { ContainerConfig, FilesArtifactUUID } from "../services/container_c
|
|
|
5
5
|
import type { ServiceID } from "../services/service";
|
|
6
6
|
import { ServiceContext } from "../services/service_context";
|
|
7
7
|
import type { PartitionConnection } from "./partition_connection";
|
|
8
|
+
import { ServiceInfo as ServiceInfoSimple } from './../services/service';
|
|
8
9
|
import { TemplateAndData } from "./template_and_data";
|
|
9
10
|
import { Readable } from "stream";
|
|
10
11
|
export declare type EnclaveID = string;
|
|
@@ -33,7 +34,7 @@ export declare class EnclaveContext {
|
|
|
33
34
|
repartitionNetwork(partitionServices: Map<PartitionID, Set<ServiceID>>, partitionConnections: Map<PartitionID, Map<PartitionID, PartitionConnection>>, defaultConnection: PartitionConnection): Promise<Result<null, Error>>;
|
|
34
35
|
waitForHttpGetEndpointAvailability(serviceId: ServiceID, port: number, path: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): Promise<Result<null, Error>>;
|
|
35
36
|
waitForHttpPostEndpointAvailability(serviceId: ServiceID, port: number, path: string, requestBody: string, initialDelayMilliseconds: number, retries: number, retriesDelayMilliseconds: number, bodyText: string): Promise<Result<null, Error>>;
|
|
36
|
-
getServices(): Promise<Result<Set<
|
|
37
|
+
getServices(): Promise<Result<Set<ServiceInfoSimple>, Error>>;
|
|
37
38
|
getModules(): Promise<Result<Set<ModuleID>, Error>>;
|
|
38
39
|
uploadFiles(pathToArchive: string): Promise<Result<FilesArtifactUUID, Error>>;
|
|
39
40
|
storeWebFiles(url: string): Promise<Result<FilesArtifactUUID, Error>>;
|
|
@@ -24,6 +24,7 @@ const constructor_calls_1 = require("../constructor_calls");
|
|
|
24
24
|
const service_context_1 = require("../services/service_context");
|
|
25
25
|
const port_spec_1 = require("../services/port_spec");
|
|
26
26
|
const api_container_service_pb_1 = require("../../kurtosis_core_rpc_api_bindings/api_container_service_pb");
|
|
27
|
+
const service_1 = require("./../services/service");
|
|
27
28
|
const path = require("path");
|
|
28
29
|
const kurtosis_yaml_1 = require("./kurtosis_yaml");
|
|
29
30
|
// This will always resolve to the default partition ID (regardless of whether such a partition exists in the enclave,
|
|
@@ -418,11 +419,11 @@ class EnclaveContext {
|
|
|
418
419
|
return (0, neverthrow_1.err)(getServicesResponseResult.error);
|
|
419
420
|
}
|
|
420
421
|
const getServicesResponse = getServicesResponseResult.value;
|
|
421
|
-
const
|
|
422
|
+
const serviceInfos = new Set();
|
|
422
423
|
getServicesResponse.getServiceInfoMap().forEach((value, key) => {
|
|
423
|
-
|
|
424
|
+
serviceInfos.add(new service_1.ServiceInfo(key, value.getServiceGuid()));
|
|
424
425
|
});
|
|
425
|
-
return (0, neverthrow_1.ok)(
|
|
426
|
+
return (0, neverthrow_1.ok)(serviceInfos);
|
|
426
427
|
});
|
|
427
428
|
}
|
|
428
429
|
// Docs available at https://docs.kurtosistech.com/kurtosis-core/lib-documentation
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export declare type ServiceID = string;
|
|
2
2
|
export declare type ServiceGUID = string;
|
|
3
|
+
export declare class ServiceInfo {
|
|
4
|
+
private readonly serviceId;
|
|
5
|
+
private readonly serviceGuid;
|
|
6
|
+
constructor(serviceId: ServiceID, serviceGuid: ServiceGUID);
|
|
7
|
+
getServiceId(): ServiceID;
|
|
8
|
+
getServiceGuid(): ServiceGUID;
|
|
9
|
+
}
|
|
@@ -4,3 +4,17 @@
|
|
|
4
4
|
* All Rights Reserved.
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ServiceInfo = void 0;
|
|
8
|
+
class ServiceInfo {
|
|
9
|
+
constructor(serviceId, serviceGuid) {
|
|
10
|
+
this.serviceId = serviceId;
|
|
11
|
+
this.serviceGuid = serviceGuid;
|
|
12
|
+
}
|
|
13
|
+
getServiceId() {
|
|
14
|
+
return this.serviceId;
|
|
15
|
+
}
|
|
16
|
+
getServiceGuid() {
|
|
17
|
+
return this.serviceGuid;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ServiceInfo = ServiceInfo;
|
|
@@ -4,5 +4,5 @@ exports.KURTOSIS_VERSION = void 0;
|
|
|
4
4
|
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
|
|
5
5
|
// This is necessary so that Kurt Core consumers (e.g. modules) will know if they're compatible with the currently-running
|
|
6
6
|
// API container
|
|
7
|
-
exports.KURTOSIS_VERSION = "0.57.
|
|
7
|
+
exports.KURTOSIS_VERSION = "0.57.1";
|
|
8
8
|
// !!!!!!!!!!! DO NOT UPDATE! WILL BE MANUALLY UPDATED DURING THE RELEASE PROCESS !!!!!!!!!!!!!!!!!!!!!!
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kurtosis-sdk",
|
|
3
3
|
"//": "NOTE: DO NOT UPDATE THIS VERSION MANUALLY - IT WILL BE UPDATED DURING THE RELEASE PROCESS!",
|
|
4
|
-
"version": "0.57.
|
|
4
|
+
"version": "0.57.1",
|
|
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",
|