@uofx/cli 1.0.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/LICENSE +40 -0
- package/README.md +444 -0
- package/THIRD-PARTY-NOTICES.txt +894 -0
- package/dist/application/dtos/index.js +24 -0
- package/dist/application/dtos/request/delete-instance.request.dto.js +3 -0
- package/dist/application/dtos/request/get-config.request.dto.js +3 -0
- package/dist/application/dtos/request/get-credentials.request.dto.js +3 -0
- package/dist/application/dtos/request/index.js +27 -0
- package/dist/application/dtos/request/install-instance.request.dto.js +3 -0
- package/dist/application/dtos/request/list-charts.request.dto.js +3 -0
- package/dist/application/dtos/request/set-config.request.dto.js +16 -0
- package/dist/application/dtos/request/setup-environment.request.dto.js +16 -0
- package/dist/application/dtos/request/show-logs.request.dto.js +19 -0
- package/dist/application/dtos/request/start-instance.request.dto.js +3 -0
- package/dist/application/dtos/request/stop-instance.request.dto.js +3 -0
- package/dist/application/dtos/response/credentials.response.dto.js +3 -0
- package/dist/application/dtos/response/delete-instance.response.dto.js +3 -0
- package/dist/application/dtos/response/index.js +26 -0
- package/dist/application/dtos/response/install-instance.response.dto.js +3 -0
- package/dist/application/dtos/response/instance-list.response.dto.js +3 -0
- package/dist/application/dtos/response/instance-status.response.dto.js +3 -0
- package/dist/application/dtos/response/setup-result.response.dto.js +3 -0
- package/dist/application/dtos/response/show-logs.response.dto.js +3 -0
- package/dist/application/dtos/response/start-instance.response.dto.js +3 -0
- package/dist/application/dtos/response/stop-instance.response.dto.js +3 -0
- package/dist/application/index.js +25 -0
- package/dist/application/interfaces/index.js +24 -0
- package/dist/application/interfaces/use-case.interface.js +3 -0
- package/dist/application/use-cases/config/get-config.use-case.js +66 -0
- package/dist/application/use-cases/config/set-config.use-case.js +49 -0
- package/dist/application/use-cases/credentials/get-credentials.use-case.js +57 -0
- package/dist/application/use-cases/index.js +28 -0
- package/dist/application/use-cases/instance/delete-instance.use-case.js +81 -0
- package/dist/application/use-cases/instance/index.js +23 -0
- package/dist/application/use-cases/instance/install-instance.use-case.js +424 -0
- package/dist/application/use-cases/instance/list-charts.use-case.js +43 -0
- package/dist/application/use-cases/instance/list-instances.use-case.js +62 -0
- package/dist/application/use-cases/instance/start-instance.use-case.js +154 -0
- package/dist/application/use-cases/instance/stop-instance.use-case.js +55 -0
- package/dist/application/use-cases/logs/show-logs.use-case.js +66 -0
- package/dist/application/use-cases/setup/setup-environment.use-case.js +53 -0
- package/dist/cli.js +286 -0
- package/dist/constants/config-defaults.js +23 -0
- package/dist/constants/defaults.js +89 -0
- package/dist/constants/deployment.js +39 -0
- package/dist/constants/environments.js +93 -0
- package/dist/constants/index.js +53 -0
- package/dist/constants/oci-artifacts.js +25 -0
- package/dist/constants/paths.js +92 -0
- package/dist/constants/timeouts.js +60 -0
- package/dist/di/container.js +34 -0
- package/dist/di/index.js +22 -0
- package/dist/di/modules/application.module.js +54 -0
- package/dist/di/modules/infrastructure.module.js +206 -0
- package/dist/di/modules/interceptor.module.js +68 -0
- package/dist/di/modules/presentation.module.js +31 -0
- package/dist/di/tokens.js +149 -0
- package/dist/domain/decorators/sensitive.decorator.js +39 -0
- package/dist/domain/entities/credentials-resolver.entity.js +127 -0
- package/dist/domain/entities/credentials.entity.js +65 -0
- package/dist/domain/entities/delete-instance-validation.entity.js +100 -0
- package/dist/domain/entities/deployment-parameters.entity.js +120 -0
- package/dist/domain/entities/environment-validation.entity.js +125 -0
- package/dist/domain/entities/index.js +29 -0
- package/dist/domain/entities/instance-lifecycle-state.entity.js +100 -0
- package/dist/domain/entities/instance-list-aggregator.entity.js +104 -0
- package/dist/domain/entities/instance-metadata.entity.js +86 -0
- package/dist/domain/entities/instance-status.entity.js +79 -0
- package/dist/domain/entities/instance.entity.js +128 -0
- package/dist/domain/entities/log-filter.entity.js +141 -0
- package/dist/domain/index.js +29 -0
- package/dist/domain/interfaces/safe-loggable.interface.js +3 -0
- package/dist/domain/ports/app-config.port.js +3 -0
- package/dist/domain/ports/base-image.port.js +3 -0
- package/dist/domain/ports/chart-version.port.js +3 -0
- package/dist/domain/ports/correlation-id.port.js +3 -0
- package/dist/domain/ports/credentials.port.js +3 -0
- package/dist/domain/ports/deployment.port.js +3 -0
- package/dist/domain/ports/error-handler.port.js +3 -0
- package/dist/domain/ports/index.js +46 -0
- package/dist/domain/ports/instance-manager.port.js +3 -0
- package/dist/domain/ports/instance-metadata.port.js +8 -0
- package/dist/domain/ports/instance-storage.port.js +3 -0
- package/dist/domain/ports/k8s-deployer.port.js +3 -0
- package/dist/domain/ports/logger.port.js +14 -0
- package/dist/domain/ports/output.port.js +3 -0
- package/dist/domain/ports/runtime-environment.port.js +6 -0
- package/dist/domain/ports/user-interaction.port.js +9 -0
- package/dist/domain/ports/user-settings.port.js +3 -0
- package/dist/domain/types/index.js +22 -0
- package/dist/domain/types/logger.types.js +29 -0
- package/dist/domain/types/validation.types.js +9 -0
- package/dist/domain/value-objects/acr-credentials.value-object.js +92 -0
- package/dist/domain/value-objects/chart-version.value-object.js +124 -0
- package/dist/domain/value-objects/config-log-level.value-object.js +84 -0
- package/dist/domain/value-objects/connection-info.value-object.js +65 -0
- package/dist/domain/value-objects/index.js +25 -0
- package/dist/domain/value-objects/instance-name.value-object.js +91 -0
- package/dist/domain/value-objects/jwt-key.value-object.js +97 -0
- package/dist/domain/value-objects/mssql-password.value-object.js +140 -0
- package/dist/domain/value-objects/rsa-key-pair.value-object.js +181 -0
- package/dist/index.js +6 -0
- package/dist/infrastructure/config/app-config.interface.js +3 -0
- package/dist/infrastructure/config/app-config.service.js +280 -0
- package/dist/infrastructure/config/config-validator.js +31 -0
- package/dist/infrastructure/config/crypto.service.js +125 -0
- package/dist/infrastructure/deployment/deployment.adapter.js +118 -0
- package/dist/infrastructure/deployment/interfaces/acr-credential-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/app-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/helm-registry.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/infra-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/k8s-job-runner.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/mssql-database-init.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/mssql-helm-deployment.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/mssql-storage.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/mssql-user-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/oci-artifact.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/secret-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/service-manager.interface.js +3 -0
- package/dist/infrastructure/deployment/interfaces/version-compatibility.interface.js +3 -0
- package/dist/infrastructure/deployment/services/acr-credential-manager.service.js +144 -0
- package/dist/infrastructure/deployment/services/app-manager.service.js +193 -0
- package/dist/infrastructure/deployment/services/base-helm-deployment.service.js +163 -0
- package/dist/infrastructure/deployment/services/helm-registry.service.js +126 -0
- package/dist/infrastructure/deployment/services/infra-manager.service.js +130 -0
- package/dist/infrastructure/deployment/services/k8s-job-runner.service.js +194 -0
- package/dist/infrastructure/deployment/services/mssql-database-init.service.js +139 -0
- package/dist/infrastructure/deployment/services/mssql-helm-deployment.service.js +100 -0
- package/dist/infrastructure/deployment/services/mssql-storage.service.js +54 -0
- package/dist/infrastructure/deployment/services/mssql-user-manager.service.js +66 -0
- package/dist/infrastructure/deployment/services/oci-artifact.service.js +289 -0
- package/dist/infrastructure/deployment/services/secret-manager.service.js +179 -0
- package/dist/infrastructure/deployment/services/service-manager.service.js +82 -0
- package/dist/infrastructure/deployment/services/version-compatibility.service.js +291 -0
- package/dist/infrastructure/environment/interfaces/hardware-info.interface.js +3 -0
- package/dist/infrastructure/environment/interfaces/network-checker.interface.js +3 -0
- package/dist/infrastructure/environment/services/hardware-info.service.js +135 -0
- package/dist/infrastructure/environment/services/network-checker.service.js +142 -0
- package/dist/infrastructure/environment/windows-environment.adapter.js +162 -0
- package/dist/infrastructure/errors/app-error.js +73 -0
- package/dist/infrastructure/errors/error-handler.interface.js +3 -0
- package/dist/infrastructure/errors/error-handler.js +218 -0
- package/dist/infrastructure/errors/exit-codes.js +27 -0
- package/dist/infrastructure/errors/index.js +25 -0
- package/dist/infrastructure/execution/builders/base-command.builder.js +122 -0
- package/dist/infrastructure/execution/builders/host-command.builder.js +58 -0
- package/dist/infrastructure/execution/builders/windows-host-command.builder.js +50 -0
- package/dist/infrastructure/execution/builders/wsl-command.builder.js +29 -0
- package/dist/infrastructure/execution/command-builder.js +252 -0
- package/dist/infrastructure/execution/command-executor.service.js +230 -0
- package/dist/infrastructure/execution/environments/wsl-execution.environment.js +70 -0
- package/dist/infrastructure/execution/execution-environment.factory.js +53 -0
- package/dist/infrastructure/execution/index.js +25 -0
- package/dist/infrastructure/execution/interfaces/command-builder.interface.js +3 -0
- package/dist/infrastructure/execution/interfaces/command-executor.interface.js +3 -0
- package/dist/infrastructure/execution/interfaces/execution-environment-factory.interface.js +3 -0
- package/dist/infrastructure/execution/interfaces/execution-environment.interface.js +7 -0
- package/dist/infrastructure/execution/interfaces/host-command-builder.interface.js +3 -0
- package/dist/infrastructure/execution/interfaces/index.js +23 -0
- package/dist/infrastructure/execution/interfaces/script-executor.interface.js +3 -0
- package/dist/infrastructure/execution/script-executor.service.js +171 -0
- package/dist/infrastructure/http/http-client.service.js +176 -0
- package/dist/infrastructure/http/index.js +18 -0
- package/dist/infrastructure/http/interfaces/http-client.interface.js +3 -0
- package/dist/infrastructure/interceptors/index.js +8 -0
- package/dist/infrastructure/interceptors/interceptor.factory.js +44 -0
- package/dist/infrastructure/interceptors/interceptor.interface.js +3 -0
- package/dist/infrastructure/interceptors/logging.interceptor.js +171 -0
- package/dist/infrastructure/logger/correlation-id.adapter.js +68 -0
- package/dist/infrastructure/logger/index.js +23 -0
- package/dist/infrastructure/logger/interfaces/index.js +22 -0
- package/dist/infrastructure/logger/interfaces/log-reader.repository.interface.js +7 -0
- package/dist/infrastructure/logger/interfaces/log-writer.repository.interface.js +7 -0
- package/dist/infrastructure/logger/logger.adapter.js +274 -0
- package/dist/infrastructure/logger/services/file-log-reader.repository.js +148 -0
- package/dist/infrastructure/logger/services/file-log-writer.repository.js +307 -0
- package/dist/infrastructure/logger/services/index.js +22 -0
- package/dist/infrastructure/persistence/index.js +25 -0
- package/dist/infrastructure/persistence/instance-metadata.adapter.js +100 -0
- package/dist/infrastructure/persistence/instance-storage.adapter.js +64 -0
- package/dist/infrastructure/persistence/interfaces/config.repository.interface.js +3 -0
- package/dist/infrastructure/persistence/interfaces/index.js +22 -0
- package/dist/infrastructure/persistence/interfaces/instance.repository.interface.js +3 -0
- package/dist/infrastructure/persistence/services/file-system-config.repository.js +168 -0
- package/dist/infrastructure/persistence/services/file-system-instance.repository.js +170 -0
- package/dist/infrastructure/persistence/services/index.js +22 -0
- package/dist/infrastructure/persistence/user-settings.adapter.js +55 -0
- package/dist/infrastructure/platform-detector.js +71 -0
- package/dist/infrastructure/platforms/windows/interfaces/microk8s.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/rootfs-manager.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/windows-features.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/windows-info.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-config.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-info.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-instance-inspection.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-instance-lifecycle.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-instance-naming.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-manager.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-resources.interface.js +8 -0
- package/dist/infrastructure/platforms/windows/interfaces/wsl-updater.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/interfaces/wslconfig-parser.interface.js +3 -0
- package/dist/infrastructure/platforms/windows/parsers/wsl-version.parser.js +133 -0
- package/dist/infrastructure/platforms/windows/services/microk8s.service.js +168 -0
- package/dist/infrastructure/platforms/windows/services/rootfs-manager.service.js +336 -0
- package/dist/infrastructure/platforms/windows/services/windows-features.service.js +191 -0
- package/dist/infrastructure/platforms/windows/services/windows-info.service.js +138 -0
- package/dist/infrastructure/platforms/windows/services/wsl-config.service.js +171 -0
- package/dist/infrastructure/platforms/windows/services/wsl-info.service.js +226 -0
- package/dist/infrastructure/platforms/windows/services/wsl-instance-inspection.service.js +325 -0
- package/dist/infrastructure/platforms/windows/services/wsl-instance-lifecycle.service.js +442 -0
- package/dist/infrastructure/platforms/windows/services/wsl-instance-naming.service.js +93 -0
- package/dist/infrastructure/platforms/windows/services/wsl-updater.service.js +273 -0
- package/dist/infrastructure/platforms/windows/services/wslconfig-parser.service.js +222 -0
- package/dist/infrastructure/platforms/windows/wsl-base-image.adapter.js +41 -0
- package/dist/infrastructure/platforms/windows/wsl-instance-manager.adapter.js +150 -0
- package/dist/infrastructure/utils/error-formatter.util.js +29 -0
- package/dist/infrastructure/utils/file-operations.util.js +201 -0
- package/dist/infrastructure/utils/input-validator.util.js +152 -0
- package/dist/infrastructure/utils/retry.util.js +98 -0
- package/dist/presentation/controllers/config.controller.js +146 -0
- package/dist/presentation/controllers/credentials.controller.js +105 -0
- package/dist/presentation/controllers/index.js +25 -0
- package/dist/presentation/controllers/instance.controller.js +363 -0
- package/dist/presentation/controllers/logs.controller.js +103 -0
- package/dist/presentation/controllers/setup.controller.js +175 -0
- package/dist/presentation/interfaces/cli-options.interface.js +8 -0
- package/dist/presentation/prompts/acr-credentials.prompt.js +76 -0
- package/dist/presentation/prompts/index.js +21 -0
- package/dist/presentation/ui/cli-progress.service.js +193 -0
- package/dist/presentation/ui/constants/output-symbols.js +42 -0
- package/dist/presentation/ui/index.js +27 -0
- package/dist/presentation/ui/interaction.service.js +276 -0
- package/dist/presentation/ui/interfaces/cli-progress.interface.js +9 -0
- package/dist/presentation/ui/interfaces/output-formatter.interface.js +23 -0
- package/dist/presentation/ui/log-level.enum.js +66 -0
- package/dist/presentation/ui/output-builder.service.js +378 -0
- package/dist/presentation/ui/output-formatter.service.js +393 -0
- package/package.json +65 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Application DTOs (Data Transfer Objects)
|
|
4
|
+
*
|
|
5
|
+
* 用於 Use Case 的輸入輸出資料結構
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./request"), exports);
|
|
23
|
+
__exportStar(require("./response"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./install-instance.request.dto"), exports);
|
|
18
|
+
__exportStar(require("./start-instance.request.dto"), exports);
|
|
19
|
+
__exportStar(require("./stop-instance.request.dto"), exports);
|
|
20
|
+
__exportStar(require("./delete-instance.request.dto"), exports);
|
|
21
|
+
__exportStar(require("./list-charts.request.dto"), exports);
|
|
22
|
+
__exportStar(require("./get-credentials.request.dto"), exports);
|
|
23
|
+
__exportStar(require("./get-config.request.dto"), exports);
|
|
24
|
+
__exportStar(require("./set-config.request.dto"), exports);
|
|
25
|
+
__exportStar(require("./setup-environment.request.dto"), exports);
|
|
26
|
+
__exportStar(require("./show-logs.request.dto"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetConfigRequestDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Set Config Request DTO
|
|
6
|
+
*/
|
|
7
|
+
class SetConfigRequestDto {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this.logLevel = options.logLevel;
|
|
10
|
+
this.acrName = options.acrName;
|
|
11
|
+
this.acrAccount = options.acrAccount;
|
|
12
|
+
this.acrPassword = options.acrPassword;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.SetConfigRequestDto = SetConfigRequestDto;
|
|
16
|
+
//# sourceMappingURL=set-config.request.dto.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetupEnvironmentRequestDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Setup Environment Request DTO
|
|
6
|
+
*/
|
|
7
|
+
class SetupEnvironmentRequestDto {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this.indentOutput = options.indentOutput;
|
|
10
|
+
this.skipNetworkChecks = options.skipNetworkChecks;
|
|
11
|
+
this.skipSummary = options.skipSummary;
|
|
12
|
+
this.logLevel = options.logLevel;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.SetupEnvironmentRequestDto = SetupEnvironmentRequestDto;
|
|
16
|
+
//# sourceMappingURL=setup-environment.request.dto.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShowLogsRequestDto = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Show Logs Request DTO
|
|
6
|
+
*/
|
|
7
|
+
class ShowLogsRequestDto {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
this.lines = options.lines ?? 50;
|
|
10
|
+
this.follow = options.follow;
|
|
11
|
+
this.level = options.level;
|
|
12
|
+
this.since = options.since;
|
|
13
|
+
this.correlation = options.correlation;
|
|
14
|
+
this.command = options.command;
|
|
15
|
+
this.commandGroup = options.commandGroup;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ShowLogsRequestDto = ShowLogsRequestDto;
|
|
19
|
+
//# sourceMappingURL=show-logs.request.dto.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./install-instance.response.dto"), exports);
|
|
18
|
+
__exportStar(require("./instance-status.response.dto"), exports);
|
|
19
|
+
__exportStar(require("./instance-list.response.dto"), exports);
|
|
20
|
+
__exportStar(require("./credentials.response.dto"), exports);
|
|
21
|
+
__exportStar(require("./setup-result.response.dto"), exports);
|
|
22
|
+
__exportStar(require("./show-logs.response.dto"), exports);
|
|
23
|
+
__exportStar(require("./start-instance.response.dto"), exports);
|
|
24
|
+
__exportStar(require("./stop-instance.response.dto"), exports);
|
|
25
|
+
__exportStar(require("./delete-instance.response.dto"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Application Layer
|
|
4
|
+
*
|
|
5
|
+
* 應用層,負責業務流程編排
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./use-cases"), exports);
|
|
23
|
+
__exportStar(require("./dtos"), exports);
|
|
24
|
+
__exportStar(require("./interfaces"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Application Layer 介面
|
|
4
|
+
*
|
|
5
|
+
* 定義 Use Case 的基礎介面
|
|
6
|
+
* 輸出介面已統一至 Domain 層的 IOutputPort
|
|
7
|
+
*/
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
__exportStar(require("./use-case.interface"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetConfigUseCase = void 0;
|
|
16
|
+
const tsyringe_1 = require("tsyringe");
|
|
17
|
+
const tokens_1 = require("../../../di/tokens");
|
|
18
|
+
/**
|
|
19
|
+
* 取得配置 Use Case
|
|
20
|
+
*
|
|
21
|
+
* 使用 IAppConfigPort 讀取合併後的配置
|
|
22
|
+
* (default.json + ~/.uofx/config.json)
|
|
23
|
+
*/
|
|
24
|
+
let GetConfigUseCase = class GetConfigUseCase {
|
|
25
|
+
constructor(appConfigPort) {
|
|
26
|
+
this.appConfigPort = appConfigPort;
|
|
27
|
+
}
|
|
28
|
+
async execute(request) {
|
|
29
|
+
const { key } = request;
|
|
30
|
+
const config = this.appConfigPort.getConfig();
|
|
31
|
+
// 支援 dot notation (如 'acr.name')
|
|
32
|
+
const keys = key.split('.');
|
|
33
|
+
let value = config;
|
|
34
|
+
for (const k of keys) {
|
|
35
|
+
if (value && typeof value === 'object' && k in value) {
|
|
36
|
+
value = value[k];
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
async getAll() {
|
|
45
|
+
// 取得合併後的完整配置
|
|
46
|
+
const config = this.appConfigPort.getConfig();
|
|
47
|
+
// 取得 ACR credentials
|
|
48
|
+
const acrCreds = this.appConfigPort.getAcrCredentials();
|
|
49
|
+
return {
|
|
50
|
+
logLevel: config.logLevel,
|
|
51
|
+
defaultAcrCredentials: acrCreds
|
|
52
|
+
? {
|
|
53
|
+
name: acrCreds.name,
|
|
54
|
+
account: acrCreds.account,
|
|
55
|
+
}
|
|
56
|
+
: null,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
exports.GetConfigUseCase = GetConfigUseCase;
|
|
61
|
+
exports.GetConfigUseCase = GetConfigUseCase = __decorate([
|
|
62
|
+
(0, tsyringe_1.injectable)(),
|
|
63
|
+
__param(0, (0, tsyringe_1.inject)(tokens_1.TOKENS.IAppConfigPort)),
|
|
64
|
+
__metadata("design:paramtypes", [Object])
|
|
65
|
+
], GetConfigUseCase);
|
|
66
|
+
//# sourceMappingURL=get-config.use-case.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SetConfigUseCase = void 0;
|
|
16
|
+
const tsyringe_1 = require("tsyringe");
|
|
17
|
+
const tokens_1 = require("../../../di/tokens");
|
|
18
|
+
const acr_credentials_value_object_1 = require("../../../domain/value-objects/acr-credentials.value-object");
|
|
19
|
+
const config_log_level_value_object_1 = require("../../../domain/value-objects/config-log-level.value-object");
|
|
20
|
+
/**
|
|
21
|
+
* 設定配置 Use Case
|
|
22
|
+
*
|
|
23
|
+
* 使用 IUserSettingsPort 寫入使用者配置到 ~/.uofx/config.json
|
|
24
|
+
*/
|
|
25
|
+
let SetConfigUseCase = class SetConfigUseCase {
|
|
26
|
+
constructor(userSettings) {
|
|
27
|
+
this.userSettings = userSettings;
|
|
28
|
+
}
|
|
29
|
+
async execute(request) {
|
|
30
|
+
// 處理 logLevel
|
|
31
|
+
if (request.logLevel !== undefined) {
|
|
32
|
+
// 使用 Value Object 驗證並轉換
|
|
33
|
+
const logLevel = config_log_level_value_object_1.ConfigLogLevelValue.create(request.logLevel);
|
|
34
|
+
await this.userSettings.setLogLevel(logLevel.toConfigType());
|
|
35
|
+
}
|
|
36
|
+
// 處理 ACR credentials
|
|
37
|
+
if (request.acrName && request.acrAccount && request.acrPassword) {
|
|
38
|
+
const credentials = acr_credentials_value_object_1.AcrCredentials.create(request.acrName, request.acrAccount, request.acrPassword);
|
|
39
|
+
await this.userSettings.saveAcrCredentials(credentials);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.SetConfigUseCase = SetConfigUseCase;
|
|
44
|
+
exports.SetConfigUseCase = SetConfigUseCase = __decorate([
|
|
45
|
+
(0, tsyringe_1.injectable)(),
|
|
46
|
+
__param(0, (0, tsyringe_1.inject)(tokens_1.TOKENS.IUserSettingsPort)),
|
|
47
|
+
__metadata("design:paramtypes", [Object])
|
|
48
|
+
], SetConfigUseCase);
|
|
49
|
+
//# sourceMappingURL=set-config.use-case.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.GetCredentialsUseCase = void 0;
|
|
16
|
+
const tsyringe_1 = require("tsyringe");
|
|
17
|
+
const tokens_1 = require("../../../di/tokens");
|
|
18
|
+
const instance_name_value_object_1 = require("../../../domain/value-objects/instance-name.value-object");
|
|
19
|
+
const errors_1 = require("../../../infrastructure/errors");
|
|
20
|
+
/**
|
|
21
|
+
* 取得憑證 Use Case
|
|
22
|
+
*
|
|
23
|
+
* 從 Kubernetes Secret 取得實例的憑證資訊
|
|
24
|
+
*/
|
|
25
|
+
let GetCredentialsUseCase = class GetCredentialsUseCase {
|
|
26
|
+
constructor(deploymentPort, instanceManager) {
|
|
27
|
+
this.deploymentPort = deploymentPort;
|
|
28
|
+
this.instanceManager = instanceManager;
|
|
29
|
+
}
|
|
30
|
+
async execute(request) {
|
|
31
|
+
const { name } = request;
|
|
32
|
+
// 使用 InstanceName Value Object 來處理 uofx- 前綴
|
|
33
|
+
const instanceName = instance_name_value_object_1.InstanceName.create(name);
|
|
34
|
+
// 檢查 instance 是否正在運行
|
|
35
|
+
const status = await this.instanceManager.getStatus(instanceName);
|
|
36
|
+
if (status.isStopped) {
|
|
37
|
+
throw new errors_1.AppError(`Instance '${name}' is not running`, {
|
|
38
|
+
exitCode: errors_1.EXIT_CODES.BUSINESS_ERROR,
|
|
39
|
+
solution: `Please start the instance first: uofx env start --name ${name}`
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
const credentials = await this.deploymentPort.getCredentials(instanceName.fullName);
|
|
43
|
+
if (!credentials) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
// 將 Domain Entity 轉換為 Response DTO
|
|
47
|
+
return credentials.toResponseDto();
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.GetCredentialsUseCase = GetCredentialsUseCase;
|
|
51
|
+
exports.GetCredentialsUseCase = GetCredentialsUseCase = __decorate([
|
|
52
|
+
(0, tsyringe_1.injectable)(),
|
|
53
|
+
__param(0, (0, tsyringe_1.inject)(tokens_1.TOKENS.IDeploymentPort)),
|
|
54
|
+
__param(1, (0, tsyringe_1.inject)(tokens_1.TOKENS.IInstanceManagerPort)),
|
|
55
|
+
__metadata("design:paramtypes", [Object, Object])
|
|
56
|
+
], GetCredentialsUseCase);
|
|
57
|
+
//# sourceMappingURL=get-credentials.use-case.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Application Use Cases
|
|
4
|
+
*
|
|
5
|
+
* 業務流程編排層,協調 Domain 層與 Infrastructure 層
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
__exportStar(require("./instance"), exports);
|
|
23
|
+
__exportStar(require("./config/get-config.use-case"), exports);
|
|
24
|
+
__exportStar(require("./config/set-config.use-case"), exports);
|
|
25
|
+
__exportStar(require("./credentials/get-credentials.use-case"), exports);
|
|
26
|
+
__exportStar(require("./logs/show-logs.use-case"), exports);
|
|
27
|
+
__exportStar(require("./setup/setup-environment.use-case"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DeleteInstanceUseCase = void 0;
|
|
16
|
+
const tsyringe_1 = require("tsyringe");
|
|
17
|
+
const tokens_1 = require("../../../di/tokens");
|
|
18
|
+
const instance_name_value_object_1 = require("../../../domain/value-objects/instance-name.value-object");
|
|
19
|
+
const delete_instance_validation_entity_1 = require("../../../domain/entities/delete-instance-validation.entity");
|
|
20
|
+
const error_formatter_util_1 = require("../../../infrastructure/utils/error-formatter.util");
|
|
21
|
+
/**
|
|
22
|
+
* 刪除實例 Use Case
|
|
23
|
+
*/
|
|
24
|
+
let DeleteInstanceUseCase = class DeleteInstanceUseCase {
|
|
25
|
+
constructor(instanceManager, instanceStorage) {
|
|
26
|
+
this.instanceManager = instanceManager;
|
|
27
|
+
this.instanceStorage = instanceStorage;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 取得實例詳細資訊
|
|
31
|
+
*/
|
|
32
|
+
async getInstanceDetails(name) {
|
|
33
|
+
const instanceName = instance_name_value_object_1.InstanceName.create(name);
|
|
34
|
+
return await this.instanceManager.getInstanceDetails(instanceName);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 刪除實例
|
|
38
|
+
*/
|
|
39
|
+
async execute(request, output) {
|
|
40
|
+
const { name, force = false } = request;
|
|
41
|
+
const instanceName = instance_name_value_object_1.InstanceName.create(name);
|
|
42
|
+
// 驗證實例存在
|
|
43
|
+
await this.instanceManager.requireExists(instanceName);
|
|
44
|
+
// 取得狀態並驗證是否可刪除
|
|
45
|
+
const status = await this.instanceManager.getStatus(instanceName);
|
|
46
|
+
const validation = delete_instance_validation_entity_1.DeleteInstanceValidation.fromStatus(status, force);
|
|
47
|
+
// 驗證是否允許刪除
|
|
48
|
+
validation.assertCanDelete();
|
|
49
|
+
let stopWarning;
|
|
50
|
+
// 如果需要先停止實例
|
|
51
|
+
if (validation.needsStop) {
|
|
52
|
+
try {
|
|
53
|
+
await this.instanceManager.stop(instanceName, true, output);
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
// 停止失敗時繼續刪除,但記錄警告
|
|
57
|
+
stopWarning = `Failed to stop instance gracefully: ${(0, error_formatter_util_1.formatErrorMessage)(error)}`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// 刪除實例
|
|
61
|
+
await this.instanceManager.delete(instanceName, output);
|
|
62
|
+
// 刪除 metadata
|
|
63
|
+
await this.instanceStorage.deleteInstance(instanceName);
|
|
64
|
+
// 取得剩餘實例數量
|
|
65
|
+
const remainingInstances = await this.instanceManager.listUofx();
|
|
66
|
+
return {
|
|
67
|
+
success: true,
|
|
68
|
+
instanceName: instanceName.fullName,
|
|
69
|
+
stopWarning,
|
|
70
|
+
remainingInstanceCount: remainingInstances.length,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
exports.DeleteInstanceUseCase = DeleteInstanceUseCase;
|
|
75
|
+
exports.DeleteInstanceUseCase = DeleteInstanceUseCase = __decorate([
|
|
76
|
+
(0, tsyringe_1.injectable)(),
|
|
77
|
+
__param(0, (0, tsyringe_1.inject)(tokens_1.TOKENS.IInstanceManagerPort)),
|
|
78
|
+
__param(1, (0, tsyringe_1.inject)(tokens_1.TOKENS.IInstanceStoragePort)),
|
|
79
|
+
__metadata("design:paramtypes", [Object, Object])
|
|
80
|
+
], DeleteInstanceUseCase);
|
|
81
|
+
//# sourceMappingURL=delete-instance.use-case.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./install-instance.use-case"), exports);
|
|
18
|
+
__exportStar(require("./start-instance.use-case"), exports);
|
|
19
|
+
__exportStar(require("./stop-instance.use-case"), exports);
|
|
20
|
+
__exportStar(require("./delete-instance.use-case"), exports);
|
|
21
|
+
__exportStar(require("./list-instances.use-case"), exports);
|
|
22
|
+
__exportStar(require("./list-charts.use-case"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|