@codiac.io/codiac-cli 1.2.127 → 1.2.133
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/lib/apis/codiac-relay/gen/client.d.ts +1 -1
- package/lib/apis/codiac-relay/gen/client.js +13 -13
- package/lib/apis/codiac-relay/gen/client.js.map +1 -1
- package/lib/cli-common/ImagesList.d.ts +0 -0
- package/lib/cli-common/ImagesList.js +67 -0
- package/lib/cli-common/ImagesList.js.map +1 -0
- package/lib/cli-common/argument-manager.d.ts +28 -0
- package/lib/cli-common/argument-manager.js +195 -0
- package/lib/cli-common/argument-manager.js.map +1 -0
- package/lib/cli-common/built-in-cli-user-input.d.ts +18 -0
- package/lib/cli-common/built-in-cli-user-input.js +310 -0
- package/lib/cli-common/built-in-cli-user-input.js.map +1 -0
- package/lib/cli-common/cli-interfaces.d.ts +0 -0
- package/lib/cli-common/cli-interfaces.js +7 -0
- package/lib/cli-common/cli-interfaces.js.map +1 -0
- package/lib/cli-common/command-base.d.ts +74 -0
- package/lib/cli-common/command-base.js +173 -0
- package/lib/cli-common/command-base.js.map +1 -0
- package/lib/cli-common/entities/index.d.ts +1 -0
- package/lib/cli-common/entities/index.js +5 -0
- package/lib/cli-common/entities/index.js.map +1 -0
- package/lib/cli-common/entities/prompt-choice.d.ts +7 -0
- package/lib/cli-common/entities/prompt-choice.js +3 -0
- package/lib/cli-common/entities/prompt-choice.js.map +1 -0
- package/lib/cli-common/file-selector.d.ts +48 -0
- package/lib/cli-common/file-selector.js +187 -0
- package/lib/cli-common/file-selector.js.map +1 -0
- package/lib/cli-common/i-user-input-provider.d.ts +0 -0
- package/lib/cli-common/i-user-input-provider.js +19 -0
- package/lib/cli-common/i-user-input-provider.js.map +1 -0
- package/lib/cli-common/index.d.ts +4 -0
- package/lib/cli-common/index.js +11 -0
- package/lib/cli-common/index.js.map +1 -0
- package/lib/cli-common/mock-ui.d.ts +27 -0
- package/lib/cli-common/mock-ui.js +83 -0
- package/lib/cli-common/mock-ui.js.map +1 -0
- package/lib/cli-common/prompt-select-fuzzy.d.ts +19 -0
- package/lib/cli-common/prompt-select-fuzzy.js +119 -0
- package/lib/cli-common/prompt-select-fuzzy.js.map +1 -0
- package/lib/cli-common/tenant-contextualizer.d.ts +0 -0
- package/lib/cli-common/tenant-contextualizer.js +436 -0
- package/lib/cli-common/tenant-contextualizer.js.map +1 -0
- package/lib/cli-common/test/tenant-contextualizer.spec.d.ts +0 -0
- package/lib/cli-common/test/tenant-contextualizer.spec.js +143 -0
- package/lib/cli-common/test/tenant-contextualizer.spec.js.map +1 -0
- package/lib/command-base-enterprise.d.ts +3 -18
- package/lib/command-base-enterprise.js +8 -69
- package/lib/command-base-enterprise.js.map +1 -1
- package/lib/command-base-tenantless.d.ts +3 -3
- package/lib/command-base-tenantless.js +16 -16
- package/lib/command-base-tenantless.js.map +1 -1
- package/lib/commands/asset/create.js +28 -27
- package/lib/commands/asset/create.js.map +1 -1
- package/lib/commands/asset/probe/create.js +11 -11
- package/lib/commands/asset/probe/create.js.map +1 -1
- package/lib/commands/build.js +2 -2
- package/lib/commands/build.js.map +1 -1
- package/lib/commands/cabinet/create.js +2 -2
- package/lib/commands/cabinet/create.js.map +1 -1
- package/lib/commands/cabinet/obliterate.js +1 -1
- package/lib/commands/cabinet/obliterate.js.map +1 -1
- package/lib/commands/commit.js +1 -1
- package/lib/commands/commit.js.map +1 -1
- package/lib/commands/enterprise/create.js +2 -2
- package/lib/commands/enterprise/create.js.map +1 -1
- package/lib/commands/environment/create.js +2 -2
- package/lib/commands/environment/create.js.map +1 -1
- package/lib/commands/filestore/capture.d.ts +0 -2
- package/lib/commands/filestore/capture.js +34 -31
- package/lib/commands/filestore/capture.js.map +1 -1
- package/lib/commands/identity/delete.js +2 -2
- package/lib/commands/identity/delete.js.map +1 -1
- package/lib/commands/identity.js +3 -3
- package/lib/commands/identity.js.map +1 -1
- package/lib/commands/init.js +4 -4
- package/lib/commands/init.js.map +1 -1
- package/lib/commands/login.js +1 -1
- package/lib/commands/login.js.map +1 -1
- package/lib/commands/publish.d.ts +3 -0
- package/lib/commands/publish.js +7 -3
- package/lib/commands/publish.js.map +1 -1
- package/lib/commands/pull.js +1 -1
- package/lib/commands/pull.js.map +1 -1
- package/lib/commands/push.js +1 -1
- package/lib/commands/push.js.map +1 -1
- package/lib/commands/run.js +6 -6
- package/lib/commands/run.js.map +1 -1
- package/lib/commands/sync.js +1 -1
- package/lib/commands/sync.js.map +1 -1
- package/lib/commands/tenant/create.js +4 -4
- package/lib/commands/tenant/create.js.map +1 -1
- package/lib/commands/tenant/switch.js +4 -4
- package/lib/commands/tenant/switch.js.map +1 -1
- package/lib/ops/INTERFACES_CLI.d.ts +3 -0
- package/lib/ops/INTERFACES_CLI.js +8 -0
- package/lib/ops/INTERFACES_CLI.js.map +1 -0
- package/lib/ops/LocalOps.d.ts +444 -0
- package/lib/ops/LocalOps.js +3184 -0
- package/lib/ops/LocalOps.js.map +1 -0
- package/lib/ops/azure-container-registry-client/azure-container-registry-client.d.ts +0 -0
- package/lib/ops/azure-container-registry-client/azure-container-registry-client.js +148 -0
- package/lib/ops/azure-container-registry-client/azure-container-registry-client.js.map +1 -0
- package/lib/ops/cli-path-walker.d.ts +0 -0
- package/lib/ops/cli-path-walker.js +55 -0
- package/lib/ops/cli-path-walker.js.map +1 -0
- package/lib/ops/codiac-entities/dependency.d.ts +5 -0
- package/lib/ops/codiac-entities/dependency.js +11 -0
- package/lib/ops/codiac-entities/dependency.js.map +1 -0
- package/lib/ops/codiac-entities/index.d.ts +1 -0
- package/lib/ops/codiac-entities/index.js +5 -0
- package/lib/ops/codiac-entities/index.js.map +1 -0
- package/lib/ops/composite-image-registry-client.d.ts +0 -0
- package/lib/ops/composite-image-registry-client.js +74 -0
- package/lib/ops/composite-image-registry-client.js.map +1 -0
- package/lib/ops/data/cli-context-repo.d.ts +61 -0
- package/lib/ops/data/cli-context-repo.js +270 -0
- package/lib/ops/data/cli-context-repo.js.map +1 -0
- package/lib/ops/data/index.d.ts +2 -0
- package/lib/ops/data/index.js +6 -0
- package/lib/ops/data/index.js.map +1 -0
- package/lib/ops/data/npm-config-repo.d.ts +13 -0
- package/lib/ops/data/npm-config-repo.js +65 -0
- package/lib/ops/data/npm-config-repo.js.map +1 -0
- package/lib/ops/docker-config.d.ts +0 -0
- package/lib/ops/docker-config.js +131 -0
- package/lib/ops/docker-config.js.map +1 -0
- package/lib/ops/docker-constants.d.ts +0 -0
- package/lib/ops/docker-constants.js +22 -0
- package/lib/ops/docker-constants.js.map +1 -0
- package/lib/ops/docker-credentials-store.d.ts +0 -0
- package/lib/ops/docker-credentials-store.js +238 -0
- package/lib/ops/docker-credentials-store.js.map +1 -0
- package/lib/ops/docker-registry-api-client/docker-registry-api-client.d.ts +0 -0
- package/lib/ops/docker-registry-api-client/docker-registry-api-client.js +289 -0
- package/lib/ops/docker-registry-api-client/docker-registry-api-client.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/blob-sum.d.ts +7 -0
- package/lib/ops/docker-registry-api-client/entities/blob-sum.js +13 -0
- package/lib/ops/docker-registry-api-client/entities/blob-sum.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.d.ts +5 -0
- package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.js +10 -0
- package/lib/ops/docker-registry-api-client/entities/docker-access-actions-enum.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.d.ts +30 -0
- package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js +36 -0
- package/lib/ops/docker-registry-api-client/entities/docker-auth-token-criteria.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.d.ts +55 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.js +52 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-error-response.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.d.ts +7 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.js +3 -0
- package/lib/ops/docker-registry-api-client/entities/i-docker-list-response.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/image-repository.d.ts +31 -0
- package/lib/ops/docker-registry-api-client/entities/image-repository.js +30 -0
- package/lib/ops/docker-registry-api-client/entities/image-repository.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.d.ts +8 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.js +14 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-criteria.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-list.d.ts +7 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-list.js +13 -0
- package/lib/ops/docker-registry-api-client/entities/image-tag-list.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/manifest-criteria.d.ts +9 -0
- package/lib/ops/docker-registry-api-client/entities/manifest-criteria.js +15 -0
- package/lib/ops/docker-registry-api-client/entities/manifest-criteria.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/manifest.d.ts +15 -0
- package/lib/ops/docker-registry-api-client/entities/manifest.js +21 -0
- package/lib/ops/docker-registry-api-client/entities/manifest.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/repository-criteria.d.ts +16 -0
- package/lib/ops/docker-registry-api-client/entities/repository-criteria.js +24 -0
- package/lib/ops/docker-registry-api-client/entities/repository-criteria.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/token-response.d.ts +15 -0
- package/lib/ops/docker-registry-api-client/entities/token-response.js +15 -0
- package/lib/ops/docker-registry-api-client/entities/token-response.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/token.d.ts +17 -0
- package/lib/ops/docker-registry-api-client/entities/token.js +22 -0
- package/lib/ops/docker-registry-api-client/entities/token.js.map +1 -0
- package/lib/ops/docker-registry-api-client/entities/version-check-criteria.d.ts +4 -0
- package/lib/ops/docker-registry-api-client/entities/version-check-criteria.js +10 -0
- package/lib/ops/docker-registry-api-client/entities/version-check-criteria.js.map +1 -0
- package/lib/ops/dx-constants.d.ts +26 -0
- package/lib/ops/dx-constants.js +43 -0
- package/lib/ops/dx-constants.js.map +1 -0
- package/lib/ops/entities/ImageBuildContext.d.ts +12 -0
- package/lib/ops/entities/ImageBuildContext.js +19 -0
- package/lib/ops/entities/ImageBuildContext.js.map +1 -0
- package/lib/ops/entities/PipelineContext.d.ts +21 -0
- package/lib/ops/entities/PipelineContext.js +23 -0
- package/lib/ops/entities/PipelineContext.js.map +1 -0
- package/lib/ops/entities/TenantContext.d.ts +10 -0
- package/lib/ops/entities/TenantContext.js +16 -0
- package/lib/ops/entities/TenantContext.js.map +1 -0
- package/lib/ops/entities/ThaulConfig.d.ts +0 -0
- package/lib/ops/entities/ThaulConfig.js +30 -0
- package/lib/ops/entities/ThaulConfig.js.map +1 -0
- package/lib/ops/entities/azure-service-principal.d.ts +23 -0
- package/lib/ops/entities/azure-service-principal.js +24 -0
- package/lib/ops/entities/azure-service-principal.js.map +1 -0
- package/lib/ops/entities/better-logger.d.ts +0 -0
- package/lib/ops/entities/better-logger.js +2 -0
- package/lib/ops/entities/better-logger.js.map +1 -0
- package/lib/ops/entities/branch.d.ts +13 -0
- package/lib/ops/entities/branch.js +16 -0
- package/lib/ops/entities/branch.js.map +1 -0
- package/lib/ops/entities/cli-config.d.ts +48 -0
- package/lib/ops/entities/cli-config.js +61 -0
- package/lib/ops/entities/cli-config.js.map +1 -0
- package/lib/ops/entities/docker-image.d.ts +60 -0
- package/lib/ops/entities/docker-image.js +3 -0
- package/lib/ops/entities/docker-image.js.map +1 -0
- package/lib/ops/entities/helm-spec.d.ts +15 -0
- package/lib/ops/entities/helm-spec.js +23 -0
- package/lib/ops/entities/helm-spec.js.map +1 -0
- package/lib/ops/entities/index.d.ts +3 -0
- package/lib/ops/entities/index.js +11 -0
- package/lib/ops/entities/index.js.map +1 -0
- package/lib/ops/entities/scaffolding.d.ts +19 -0
- package/lib/ops/entities/scaffolding.js +21 -0
- package/lib/ops/entities/scaffolding.js.map +1 -0
- package/lib/ops/extensions/azart-identity-adapter.d.ts +19 -0
- package/lib/ops/extensions/azart-identity-adapter.js +97 -0
- package/lib/ops/extensions/azart-identity-adapter.js.map +1 -0
- package/lib/ops/extensions/npm-identity-adapter-base.d.ts +13 -0
- package/lib/ops/extensions/npm-identity-adapter-base.js +3 -0
- package/lib/ops/extensions/npm-identity-adapter-base.js.map +1 -0
- package/lib/ops/extensions/npmjs-identity-adapter.d.ts +13 -0
- package/lib/ops/extensions/npmjs-identity-adapter.js +64 -0
- package/lib/ops/extensions/npmjs-identity-adapter.js.map +1 -0
- package/lib/ops/git-ops.d.ts +8 -0
- package/lib/ops/git-ops.js +14 -0
- package/lib/ops/git-ops.js.map +1 -0
- package/lib/ops/i-client-for-image-registry.d.ts +0 -0
- package/lib/ops/i-client-for-image-registry.js +17 -0
- package/lib/ops/i-client-for-image-registry.js.map +1 -0
- package/lib/ops/i-identity-handler.d.ts +33 -0
- package/lib/ops/i-identity-handler.js +165 -0
- package/lib/ops/i-identity-handler.js.map +1 -0
- package/lib/ops/i-output-styler.d.ts +0 -0
- package/lib/ops/i-output-styler.js +17 -0
- package/lib/ops/i-output-styler.js.map +1 -0
- package/lib/ops/index.d.ts +12 -0
- package/lib/ops/index.js +15 -0
- package/lib/ops/index.js.map +1 -0
- package/lib/ops/json-utils.d.ts +0 -0
- package/lib/ops/json-utils.js +59 -0
- package/lib/ops/json-utils.js.map +1 -0
- package/lib/ops/no-style-output-styler.d.ts +0 -0
- package/lib/ops/no-style-output-styler.js +30 -0
- package/lib/ops/no-style-output-styler.js.map +1 -0
- package/lib/ops/oauth2-client.ts/oauth2-client.d.ts +23 -0
- package/lib/ops/oauth2-client.ts/oauth2-client.js +64 -0
- package/lib/ops/oauth2-client.ts/oauth2-client.js.map +1 -0
- package/lib/ops/project-initializer.d.ts +36 -0
- package/lib/ops/project-initializer.js +219 -0
- package/lib/ops/project-initializer.js.map +1 -0
- package/lib/ops/scaffolding/base-scaffolding.d.ts +7 -0
- package/lib/ops/scaffolding/base-scaffolding.js +21 -0
- package/lib/ops/scaffolding/base-scaffolding.js.map +1 -0
- package/lib/ops/scaffolding/codiac-api-scaffolding.d.ts +7 -0
- package/lib/ops/scaffolding/codiac-api-scaffolding.js +64 -0
- package/lib/ops/scaffolding/codiac-api-scaffolding.js.map +1 -0
- package/lib/ops/scaffolding/typescript-scaffolding.d.ts +15 -0
- package/lib/ops/scaffolding/typescript-scaffolding.js +163 -0
- package/lib/ops/scaffolding/typescript-scaffolding.js.map +1 -0
- package/lib/ops/test/mock-ui.d.ts +26 -0
- package/lib/ops/test/mock-ui.js +88 -0
- package/lib/ops/test/mock-ui.js.map +1 -0
- package/lib/ops/test/test-extensions.d.ts +13 -0
- package/lib/ops/test/test-extensions.js +71 -0
- package/lib/ops/test/test-extensions.js.map +1 -0
- package/lib/ops/test/when-a-recursive-file-search-is-run.spec.d.ts +2 -0
- package/lib/ops/test/when-a-recursive-file-search-is-run.spec.js +55 -0
- package/lib/ops/test/when-a-recursive-file-search-is-run.spec.js.map +1 -0
- package/lib/ops/test/when-git-branchline-is-attempted.spec.d.ts +2 -0
- package/lib/ops/test/when-git-branchline-is-attempted.spec.js +38 -0
- package/lib/ops/test/when-git-branchline-is-attempted.spec.js.map +1 -0
- package/lib/ops/test/when-versions-are-parsed.spec.d.ts +2 -0
- package/lib/ops/test/when-versions-are-parsed.spec.js +60 -0
- package/lib/ops/test/when-versions-are-parsed.spec.js.map +1 -0
- package/lib/ops/throwing-user-input-provider.d.ts +0 -0
- package/lib/ops/throwing-user-input-provider.js +37 -0
- package/lib/ops/throwing-user-input-provider.js.map +1 -0
- package/lib/relay/relay-container.js +1 -1
- package/lib/uilogic/build-configurator.d.ts +1 -1
- package/lib/uilogic/build-configurator.js +2 -2
- package/lib/uilogic/build-configurator.js.map +1 -1
- package/lib/uilogic/cloud-provider-contextualizer.d.ts +2 -1
- package/lib/uilogic/cloud-provider-contextualizer.js +8 -4
- package/lib/uilogic/cloud-provider-contextualizer.js.map +1 -1
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.d.ts +1 -1
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js +1 -1
- package/lib/uilogic/cloud-resource-configurators/aws-resource-configurator.js.map +1 -1
- package/lib/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.d.ts +0 -16
- package/lib/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js +76 -83
- package/lib/uilogic/cloud-resource-configurators/az-acr-cli-authenticator.js.map +1 -1
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.d.ts +1 -1
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js +4 -4
- package/lib/uilogic/cloud-resource-configurators/azure-resource-configurator.js.map +1 -1
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.d.ts +4 -4
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js +7 -8
- package/lib/uilogic/cloud-resource-configurators/docker-hub-resource-configurator.js.map +1 -1
- package/lib/uilogic/enterprise-contextualizer.d.ts +1 -1
- package/lib/uilogic/enterprise-contextualizer.js +6 -1
- package/lib/uilogic/enterprise-contextualizer.js.map +1 -1
- package/lib/uilogic/i-login-configurator.d.ts +1 -1
- package/lib/uilogic/image-configurator.d.ts +0 -1
- package/lib/uilogic/image-configurator.js +27 -47
- package/lib/uilogic/image-configurator.js.map +1 -1
- package/lib/uilogic/image-contextualizer.js +2 -2
- package/lib/uilogic/image-contextualizer.js.map +1 -1
- package/lib/uilogic/tenant-contextualizer.d.ts +1 -1
- package/lib/uilogic/tenant-contextualizer.js +3 -3
- package/lib/uilogic/tenant-contextualizer.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ImageBuildContext = void 0;
|
|
4
|
+
/** Scope variables and settings used in building images for the project.
|
|
5
|
+
*/
|
|
6
|
+
class ImageBuildContext {
|
|
7
|
+
constructor(dockerRoot, distPath, codeVersion, buildNumber, apiFrameworkVersion,
|
|
8
|
+
// public projUserCfg: ProjectUserConfig,
|
|
9
|
+
identitySet) {
|
|
10
|
+
this.dockerRoot = dockerRoot;
|
|
11
|
+
this.distPath = distPath;
|
|
12
|
+
this.codeVersion = codeVersion;
|
|
13
|
+
this.buildNumber = buildNumber;
|
|
14
|
+
this.apiFrameworkVersion = apiFrameworkVersion;
|
|
15
|
+
this.identitySet = identitySet;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ImageBuildContext = ImageBuildContext;
|
|
19
|
+
//# sourceMappingURL=ImageBuildContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageBuildContext.js","sourceRoot":"","sources":["../../../src/ops/entities/ImageBuildContext.ts"],"names":[],"mappings":";;;AAEA;GACG;AACH,MAAa,iBAAiB;IAC5B,YACS,UAAkB,EAClB,QAAgB,EAChB,WAAmB,EACnB,WAAmB,EACnB,mBAA2B;IAClC,yCAAyC;IAClC,WAAyB;QANzB,eAAU,GAAV,UAAU,CAAQ;QAClB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,gBAAW,GAAX,WAAW,CAAQ;QACnB,gBAAW,GAAX,WAAW,CAAQ;QACnB,wBAAmB,GAAnB,mBAAmB,CAAQ;QAE3B,gBAAW,GAAX,WAAW,CAAc;IAClC,CAAC;CACF;AAVD,8CAUC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Simple poto class pairing an Api, a tenant, a git branch, and a target devops pipeline. */
|
|
2
|
+
export declare class PipelineContext {
|
|
3
|
+
/** The registered identifier for the api project. */
|
|
4
|
+
apiCode: string;
|
|
5
|
+
/** The source code branch of the api project that feeds the pipeline (NOTE: this should be redundant with the pipelineCode) */
|
|
6
|
+
sourceBranch: string;
|
|
7
|
+
/** The organization to which the api project belongs. (NOTE: This should be redundant with the apiCode) */
|
|
8
|
+
tenantCode: string;
|
|
9
|
+
/** The identifier for the cicd pipeline to which this api project is bound */
|
|
10
|
+
pipelineCode: string;
|
|
11
|
+
/** Simple poto class pairing an Api, a tenant, a git branch, and a target devops pipeline. */
|
|
12
|
+
constructor(
|
|
13
|
+
/** The registered identifier for the api project. */
|
|
14
|
+
apiCode: string,
|
|
15
|
+
/** The source code branch of the api project that feeds the pipeline (NOTE: this should be redundant with the pipelineCode) */
|
|
16
|
+
sourceBranch: string,
|
|
17
|
+
/** The organization to which the api project belongs. (NOTE: This should be redundant with the apiCode) */
|
|
18
|
+
tenantCode: string,
|
|
19
|
+
/** The identifier for the cicd pipeline to which this api project is bound */
|
|
20
|
+
pipelineCode: string);
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PipelineContext = void 0;
|
|
4
|
+
/** Simple poto class pairing an Api, a tenant, a git branch, and a target devops pipeline. */
|
|
5
|
+
class PipelineContext {
|
|
6
|
+
/** Simple poto class pairing an Api, a tenant, a git branch, and a target devops pipeline. */
|
|
7
|
+
constructor(
|
|
8
|
+
/** The registered identifier for the api project. */
|
|
9
|
+
apiCode,
|
|
10
|
+
/** The source code branch of the api project that feeds the pipeline (NOTE: this should be redundant with the pipelineCode) */
|
|
11
|
+
sourceBranch,
|
|
12
|
+
/** The organization to which the api project belongs. (NOTE: This should be redundant with the apiCode) */
|
|
13
|
+
tenantCode,
|
|
14
|
+
/** The identifier for the cicd pipeline to which this api project is bound */
|
|
15
|
+
pipelineCode) {
|
|
16
|
+
this.apiCode = apiCode;
|
|
17
|
+
this.sourceBranch = sourceBranch;
|
|
18
|
+
this.tenantCode = tenantCode;
|
|
19
|
+
this.pipelineCode = pipelineCode;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.PipelineContext = PipelineContext;
|
|
23
|
+
//# sourceMappingURL=PipelineContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PipelineContext.js","sourceRoot":"","sources":["../../../src/ops/entities/PipelineContext.ts"],"names":[],"mappings":";;;AACA,8FAA8F;AAC9F,MAAa,eAAe;IAC1B,8FAA8F;IAC9F;IACE,qDAAqD;IAC9C,OAAe;IACtB,gIAAgI;IACzH,YAAoB;IAC3B,4GAA4G;IACrG,UAAkB;IACzB,8EAA8E;IACvE,YAAoB;QANpB,YAAO,GAAP,OAAO,CAAQ;QAEf,iBAAY,GAAZ,YAAY,CAAQ;QAEpB,eAAU,GAAV,UAAU,CAAQ;QAElB,iBAAY,GAAZ,YAAY,CAAQ;IAE7B,CAAC;CAEF;AAdD,0CAcC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** A coupling of tenant info with a tenant token. */
|
|
2
|
+
export declare class TenantContext {
|
|
3
|
+
tenantCode: string;
|
|
4
|
+
token: string;
|
|
5
|
+
tenantName?: string | undefined;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
constructor(tenantCode: string, token: string, tenantName?: string | undefined);
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TenantContext = void 0;
|
|
4
|
+
/** A coupling of tenant info with a tenant token. */
|
|
5
|
+
class TenantContext {
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
constructor(tenantCode, token, tenantName) {
|
|
10
|
+
this.tenantCode = tenantCode;
|
|
11
|
+
this.token = token;
|
|
12
|
+
this.tenantName = tenantName;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TenantContext = TenantContext;
|
|
16
|
+
//# sourceMappingURL=TenantContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TenantContext.js","sourceRoot":"","sources":["../../../src/ops/entities/TenantContext.ts"],"names":[],"mappings":";;;AACA,qDAAqD;AACrD,MAAa,aAAa;IACxB;;OAEG;IACH,YAAmB,UAAiB,EAAS,KAAY,EAAS,UAAkB;QAAjE,eAAU,GAAV,UAAU,CAAO;QAAS,UAAK,GAAL,KAAK,CAAO;QAAS,eAAU,GAAV,UAAU,CAAQ;IAEpF,CAAC;CACF;AAPD,sCAOC"}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { Submodule } from './submodule';
|
|
3
|
+
// import { genericDictionary } from '@codiac.io/codiac-common';
|
|
4
|
+
// import { ImageExport } from '@codiac.io/codiac-relay-contracts/image-export';
|
|
5
|
+
// import { PackageExport } from './package-export';
|
|
6
|
+
// /** Settings for an API project.
|
|
7
|
+
// * @param name Friendly title of the Api project. THis is NOT used for system identification (use "apiCode" to uniquely identify the service itself).
|
|
8
|
+
// * @param tenantCode Identifier for the Toyhauler tenant to which this api belongs.
|
|
9
|
+
// */
|
|
10
|
+
// export class ProjectConfig {
|
|
11
|
+
// /** The filename used when serializing the ThaulConfig object. */
|
|
12
|
+
// public static FILENAME = 'thaulconfig.json'
|
|
13
|
+
// constructor(public name: string, public tenantCode: string) {
|
|
14
|
+
// this.submodules = [];
|
|
15
|
+
// }
|
|
16
|
+
// /** The identifier for the cicd pipeline to which this api project is bound */
|
|
17
|
+
// public pipelineCode: string | undefined;
|
|
18
|
+
// /** The registered identifier for the api project. */
|
|
19
|
+
// public apiCode: string | undefined;
|
|
20
|
+
// public submodules: Submodule[];
|
|
21
|
+
// /** Declares the packages that are to be published. */
|
|
22
|
+
// public packages?: genericDictionary<PackageExport>
|
|
23
|
+
// /** Describes the registry to which a container image is to be published,
|
|
24
|
+
// * as well as any credentials for doing so. */
|
|
25
|
+
// public images?: genericDictionary<ImageExport>
|
|
26
|
+
// /** Memorized command calls, ie: argument configurations for built in commands that can be called for by name. */
|
|
27
|
+
// // public namedCalls?: { [command: string]: { [name: string]: string } };
|
|
28
|
+
// public namedCalls?: { [command: string]: { [name: string]: { args: Object, flags: Object } } };
|
|
29
|
+
// }
|
|
30
|
+
//# sourceMappingURL=ThaulConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThaulConfig.js","sourceRoot":"","sources":["../../../src/ops/entities/ThaulConfig.ts"],"names":[],"mappings":";AAAA,2CAA2C;AAC3C,gEAAgE;AAChE,gFAAgF;AAChF,oDAAoD;AAIpD,mCAAmC;AACnC,2JAA2J;AAC3J,sFAAsF;AACtF,MAAM;AACN,+BAA+B;AAC/B,sEAAsE;AACtE,gDAAgD;AAEhD,kEAAkE;AAClE,4BAA4B;AAC5B,MAAM;AACN,mFAAmF;AACnF,6CAA6C;AAE7C,0DAA0D;AAC1D,wCAAwC;AAExC,oCAAoC;AAEpC,4DAA4D;AAC5D,uDAAuD;AAEvD,gFAAgF;AAChF,mDAAmD;AACnD,mDAAmD;AAEnD,uHAAuH;AACvH,8EAA8E;AAC9E,oGAAoG;AACpG,IAAI"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class AzureServicePrincipal {
|
|
2
|
+
/** (guid) The id of the service principal, used when assigining permissions. eg: "bf52a5ea-3663-476c-bb54-aacf9a1b39db", */
|
|
3
|
+
appId: string;
|
|
4
|
+
/** The human readable name we give to the service principal. eg: "svc-princ-devcluster1", */
|
|
5
|
+
displayName: string;
|
|
6
|
+
/** full url by which Azure identifies the service principal. eg: "http://svc-princ-devcluster1", */
|
|
7
|
+
name: string;
|
|
8
|
+
/** (guid) This password is typically generated on creation and thus needs to be persisted for future use (eg: needed when creating a cluster). */
|
|
9
|
+
password: string;
|
|
10
|
+
/** (guid) The id of the Azure account holder. NOTE: This is NOT the subscription id. */
|
|
11
|
+
tenant: string;
|
|
12
|
+
constructor(
|
|
13
|
+
/** (guid) The id of the service principal, used when assigining permissions. eg: "bf52a5ea-3663-476c-bb54-aacf9a1b39db", */
|
|
14
|
+
appId: string,
|
|
15
|
+
/** The human readable name we give to the service principal. eg: "svc-princ-devcluster1", */
|
|
16
|
+
displayName: string,
|
|
17
|
+
/** full url by which Azure identifies the service principal. eg: "http://svc-princ-devcluster1", */
|
|
18
|
+
name: string,
|
|
19
|
+
/** (guid) This password is typically generated on creation and thus needs to be persisted for future use (eg: needed when creating a cluster). */
|
|
20
|
+
password: string,
|
|
21
|
+
/** (guid) The id of the Azure account holder. NOTE: This is NOT the subscription id. */
|
|
22
|
+
tenant: string);
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AzureServicePrincipal = void 0;
|
|
4
|
+
class AzureServicePrincipal {
|
|
5
|
+
constructor(
|
|
6
|
+
/** (guid) The id of the service principal, used when assigining permissions. eg: "bf52a5ea-3663-476c-bb54-aacf9a1b39db", */
|
|
7
|
+
appId,
|
|
8
|
+
/** The human readable name we give to the service principal. eg: "svc-princ-devcluster1", */
|
|
9
|
+
displayName,
|
|
10
|
+
/** full url by which Azure identifies the service principal. eg: "http://svc-princ-devcluster1", */
|
|
11
|
+
name,
|
|
12
|
+
/** (guid) This password is typically generated on creation and thus needs to be persisted for future use (eg: needed when creating a cluster). */
|
|
13
|
+
password,
|
|
14
|
+
/** (guid) The id of the Azure account holder. NOTE: This is NOT the subscription id. */
|
|
15
|
+
tenant) {
|
|
16
|
+
this.appId = appId;
|
|
17
|
+
this.displayName = displayName;
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.password = password;
|
|
20
|
+
this.tenant = tenant;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.AzureServicePrincipal = AzureServicePrincipal;
|
|
24
|
+
//# sourceMappingURL=azure-service-principal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azure-service-principal.js","sourceRoot":"","sources":["../../../src/ops/entities/azure-service-principal.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;IAChC;IACE,4HAA4H;IACrH,KAAa;IACpB,8FAA8F;IACvF,WAAmB;IAC1B,qGAAqG;IAC9F,IAAY;IACnB,kJAAkJ;IAC3I,QAAgB;IACvB,yFAAyF;IAClF,MAAc;QARd,UAAK,GAAL,KAAK,CAAQ;QAEb,gBAAW,GAAX,WAAW,CAAQ;QAEnB,SAAI,GAAJ,IAAI,CAAQ;QAEZ,aAAQ,GAAR,QAAQ,CAAQ;QAEhB,WAAM,GAAN,MAAM,CAAQ;IAEvB,CAAC;CACF;AAdD,sDAcC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"better-logger.js","sourceRoot":"","sources":["../../../src/ops/entities/better-logger.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A branch in source control.
|
|
3
|
+
* @param name Name of the branch (without its "ref" prefixing - eg: "refs/heads/..")
|
|
4
|
+
* @param isCurrent Flag denoting that this branch is currently active in git on the local machine.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Branch {
|
|
7
|
+
name: string;
|
|
8
|
+
isCurrent: boolean;
|
|
9
|
+
constructor(name: string, isCurrent?: boolean);
|
|
10
|
+
/** The name of the remote origin to which this local branch is bound.
|
|
11
|
+
* ie: the remote branch to which this branch is set up to push. */
|
|
12
|
+
upstream: string | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Branch = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A branch in source control.
|
|
6
|
+
* @param name Name of the branch (without its "ref" prefixing - eg: "refs/heads/..")
|
|
7
|
+
* @param isCurrent Flag denoting that this branch is currently active in git on the local machine.
|
|
8
|
+
*/
|
|
9
|
+
class Branch {
|
|
10
|
+
constructor(name, isCurrent = false) {
|
|
11
|
+
this.name = name;
|
|
12
|
+
this.isCurrent = isCurrent;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Branch = Branch;
|
|
16
|
+
//# sourceMappingURL=branch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branch.js","sourceRoot":"","sources":["../../../src/ops/entities/branch.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,MAAM;IACjB,YAAmB,IAAY,EAAS,YAAqB,KAAK;QAA/C,SAAI,GAAJ,IAAI,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAiB;IAElE,CAAC;CAKF;AARD,wBAQC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Basic local environment info about the current instance of the cli process.
|
|
2
|
+
*/
|
|
3
|
+
export declare class CliEnviro {
|
|
4
|
+
cliConfigDir: string;
|
|
5
|
+
version: string;
|
|
6
|
+
constructor(cliConfigDir: string, version: string);
|
|
7
|
+
}
|
|
8
|
+
/** Basic codiac project info for the current instance of the cli process.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ProjectEnviro {
|
|
11
|
+
projectRoot: string;
|
|
12
|
+
constructor(projectRoot: string);
|
|
13
|
+
}
|
|
14
|
+
/** Configuration for the Toyhauler CLI (command Line Interface) itself.
|
|
15
|
+
* This onfiguration is global for the install of the CLI.
|
|
16
|
+
*/
|
|
17
|
+
export declare class CliConfig {
|
|
18
|
+
static readonly FILENAME = "globalconfig.json";
|
|
19
|
+
constructor();
|
|
20
|
+
/** The url for the Toyhauler Authentication API, for use with the package: toyhauler-auth-client. */
|
|
21
|
+
authApiBaseUrl: string | undefined;
|
|
22
|
+
/** The url for the Toyhauler API, for use with the package: toyhauler-api-client. */
|
|
23
|
+
codiacApiBaseUrl: string | undefined;
|
|
24
|
+
/** Declares that the console should render all output details
|
|
25
|
+
* LogLevels rendered for each setting are as follows:
|
|
26
|
+
* normal: notice, warn, error, and fatal;
|
|
27
|
+
* detail: adds detail;
|
|
28
|
+
* debug: adds debug and trace. */
|
|
29
|
+
verbosity: Verbosity;
|
|
30
|
+
/** WHen incrementing a prerelease version,
|
|
31
|
+
* the prerelease version segment will be prefixed
|
|
32
|
+
* with the branch name
|
|
33
|
+
*
|
|
34
|
+
* using format: `[major].[minor].[patch]-[branch].[prereleaseNumber]`
|
|
35
|
+
*
|
|
36
|
+
* eg: `1.2.3-4` becomes `1.2.3-thisBranch.5` */
|
|
37
|
+
addBranchNameToPrereleases: boolean | undefined;
|
|
38
|
+
}
|
|
39
|
+
/** User setting for console output volume.
|
|
40
|
+
* LogLevels rendered for each setting are as follows:
|
|
41
|
+
* normal: notice, warn, error, and fatal;
|
|
42
|
+
* detail: adds detail;
|
|
43
|
+
* debug: adds debug and trace. */
|
|
44
|
+
export declare enum Verbosity {
|
|
45
|
+
normal = "normal",
|
|
46
|
+
detail = "detail",
|
|
47
|
+
debug = "debug"
|
|
48
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Verbosity = exports.CliConfig = exports.ProjectEnviro = exports.CliEnviro = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const inversify_1 = require("inversify");
|
|
6
|
+
/** Basic local environment info about the current instance of the cli process.
|
|
7
|
+
*/
|
|
8
|
+
let CliEnviro = class CliEnviro {
|
|
9
|
+
constructor(cliConfigDir, version) {
|
|
10
|
+
this.cliConfigDir = cliConfigDir;
|
|
11
|
+
this.version = version;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
CliEnviro = tslib_1.__decorate([
|
|
15
|
+
(0, inversify_1.injectable)(),
|
|
16
|
+
tslib_1.__metadata("design:paramtypes", [String, String])
|
|
17
|
+
], CliEnviro);
|
|
18
|
+
exports.CliEnviro = CliEnviro;
|
|
19
|
+
/** Basic codiac project info for the current instance of the cli process.
|
|
20
|
+
*/
|
|
21
|
+
let ProjectEnviro = class ProjectEnviro {
|
|
22
|
+
constructor(projectRoot) {
|
|
23
|
+
this.projectRoot = projectRoot;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
ProjectEnviro = tslib_1.__decorate([
|
|
27
|
+
(0, inversify_1.injectable)(),
|
|
28
|
+
tslib_1.__metadata("design:paramtypes", [String])
|
|
29
|
+
], ProjectEnviro);
|
|
30
|
+
exports.ProjectEnviro = ProjectEnviro;
|
|
31
|
+
/** Configuration for the Toyhauler CLI (command Line Interface) itself.
|
|
32
|
+
* This onfiguration is global for the install of the CLI.
|
|
33
|
+
*/
|
|
34
|
+
let CliConfig = class CliConfig {
|
|
35
|
+
constructor() {
|
|
36
|
+
/** Declares that the console should render all output details
|
|
37
|
+
* LogLevels rendered for each setting are as follows:
|
|
38
|
+
* normal: notice, warn, error, and fatal;
|
|
39
|
+
* detail: adds detail;
|
|
40
|
+
* debug: adds debug and trace. */
|
|
41
|
+
this.verbosity = Verbosity.normal;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
CliConfig.FILENAME = 'globalconfig.json';
|
|
45
|
+
CliConfig = tslib_1.__decorate([
|
|
46
|
+
(0, inversify_1.injectable)(),
|
|
47
|
+
tslib_1.__metadata("design:paramtypes", [])
|
|
48
|
+
], CliConfig);
|
|
49
|
+
exports.CliConfig = CliConfig;
|
|
50
|
+
/** User setting for console output volume.
|
|
51
|
+
* LogLevels rendered for each setting are as follows:
|
|
52
|
+
* normal: notice, warn, error, and fatal;
|
|
53
|
+
* detail: adds detail;
|
|
54
|
+
* debug: adds debug and trace. */
|
|
55
|
+
var Verbosity;
|
|
56
|
+
(function (Verbosity) {
|
|
57
|
+
Verbosity["normal"] = "normal";
|
|
58
|
+
Verbosity["detail"] = "detail";
|
|
59
|
+
Verbosity["debug"] = "debug";
|
|
60
|
+
})(Verbosity = exports.Verbosity || (exports.Verbosity = {}));
|
|
61
|
+
//# sourceMappingURL=cli-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli-config.js","sourceRoot":"","sources":["../../../src/ops/entities/cli-config.ts"],"names":[],"mappings":";;;;AACA,yCAAuC;AAGvC;GACG;AAEK,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YAAmB,YAAoB,EAAS,OAAe;QAA5C,iBAAY,GAAZ,YAAY,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;IAE/D,CAAC;CACF,CAAA;AAJY,SAAS;IADrB,IAAA,sBAAU,GAAE;;GACA,SAAS,CAIrB;AAJY,8BAAS;AAOtB;GACG;AAEK,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAmB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAEtC,CAAC;CACF,CAAA;AAJY,aAAa;IADzB,IAAA,sBAAU,GAAE;;GACA,aAAa,CAIzB;AAJY,sCAAa;AAM5B;;GAEG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IAGpB;QAUA;;;;0CAIkC;QAC3B,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;IAb/C,CAAC;;AAJsB,kBAAQ,GAAG,mBAAmB,CAAC;AAD3C,SAAS;IADrB,IAAA,sBAAU,GAAE;;GACA,SAAS,CA4BrB;AA5BY,8BAAS;AA+BtB;;;;kCAIkC;AAClC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare class DockerImage {
|
|
2
|
+
Id: string;
|
|
3
|
+
RepoTags: [];
|
|
4
|
+
RepoDigests: [];
|
|
5
|
+
Parent: string;
|
|
6
|
+
Comment: string;
|
|
7
|
+
Created: Date;
|
|
8
|
+
Container: string;
|
|
9
|
+
ContainerConfig: {
|
|
10
|
+
Hostname: string;
|
|
11
|
+
Domainname: string;
|
|
12
|
+
User: string;
|
|
13
|
+
AttachStdin: boolean;
|
|
14
|
+
AttachStdout: boolean;
|
|
15
|
+
AttachStderr: boolean;
|
|
16
|
+
Tty: boolean;
|
|
17
|
+
OpenStdin: boolean;
|
|
18
|
+
StdinOnce: boolean;
|
|
19
|
+
Env: string;
|
|
20
|
+
Cmd: string;
|
|
21
|
+
Image: string;
|
|
22
|
+
Volumes: string;
|
|
23
|
+
WorkingDir: string;
|
|
24
|
+
Entrypoint: string;
|
|
25
|
+
OnBuild: string;
|
|
26
|
+
Labels: string;
|
|
27
|
+
};
|
|
28
|
+
DockerVersion: string;
|
|
29
|
+
Author: string;
|
|
30
|
+
Config: {
|
|
31
|
+
Hostname: string;
|
|
32
|
+
Domainname: string;
|
|
33
|
+
User: string;
|
|
34
|
+
AttachStdin: boolean;
|
|
35
|
+
AttachStdout: boolean;
|
|
36
|
+
AttachStderr: boolean;
|
|
37
|
+
ExposedPorts: {};
|
|
38
|
+
Tty: boolean;
|
|
39
|
+
OpenStdin: boolean;
|
|
40
|
+
StdinOnce: boolean;
|
|
41
|
+
Env: [];
|
|
42
|
+
Cmd: [];
|
|
43
|
+
ArgsEscaped: boolean;
|
|
44
|
+
Image: string;
|
|
45
|
+
Volumes: [];
|
|
46
|
+
WorkingDir: string;
|
|
47
|
+
Entrypoint: [];
|
|
48
|
+
Labels: {};
|
|
49
|
+
};
|
|
50
|
+
Architecture: string;
|
|
51
|
+
Os: string;
|
|
52
|
+
Size: number;
|
|
53
|
+
VirtualSize: number;
|
|
54
|
+
GraphDriver: {
|
|
55
|
+
Data: {};
|
|
56
|
+
Name: string;
|
|
57
|
+
};
|
|
58
|
+
RootFS: {};
|
|
59
|
+
Metadata: {};
|
|
60
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker-image.js","sourceRoot":"","sources":["../../../src/ops/entities/docker-image.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Reference to an existing Helm chart. */
|
|
2
|
+
export declare class HelmChart {
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
repoName: string;
|
|
6
|
+
repoUrl: string;
|
|
7
|
+
constructor(name: string, version: string, repoName: string, repoUrl: string);
|
|
8
|
+
}
|
|
9
|
+
/** Input for installation of an Asset delivered as a Helm chart. */
|
|
10
|
+
export declare class HelmSpec {
|
|
11
|
+
chart: HelmChart;
|
|
12
|
+
name: string;
|
|
13
|
+
namespace: string;
|
|
14
|
+
constructor(chart: HelmChart, name: string, namespace: string);
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HelmSpec = exports.HelmChart = void 0;
|
|
4
|
+
/** Reference to an existing Helm chart. */
|
|
5
|
+
class HelmChart {
|
|
6
|
+
constructor(name, version, repoName, repoUrl) {
|
|
7
|
+
this.name = name;
|
|
8
|
+
this.version = version;
|
|
9
|
+
this.repoName = repoName;
|
|
10
|
+
this.repoUrl = repoUrl;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.HelmChart = HelmChart;
|
|
14
|
+
/** Input for installation of an Asset delivered as a Helm chart. */
|
|
15
|
+
class HelmSpec {
|
|
16
|
+
constructor(chart, name, namespace) {
|
|
17
|
+
this.chart = chart;
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.namespace = namespace;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.HelmSpec = HelmSpec;
|
|
23
|
+
//# sourceMappingURL=helm-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helm-spec.js","sourceRoot":"","sources":["../../../src/ops/entities/helm-spec.ts"],"names":[],"mappings":";;;AAEA,2CAA2C;AAC3C,MAAa,SAAS;IACpB,YAAmB,IAAY,EAAS,OAAe,EAAS,QAAgB,EAAS,OAAe;QAArF,SAAI,GAAJ,IAAI,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;QAAS,aAAQ,GAAR,QAAQ,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;IAExG,CAAC;CACF;AAJD,8BAIC;AAGD,oEAAoE;AACpE,MAAa,QAAQ;IACnB,YAAmB,KAAgB,EAAS,IAAY,EAAS,SAAiB;QAA/D,UAAK,GAAL,KAAK,CAAW;QAAS,SAAI,GAAJ,IAAI,CAAQ;QAAS,cAAS,GAAT,SAAS,CAAQ;IAElF,CAAC;CACF;AAJD,4BAIC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// export * from '@codiac.io/codiac-relay-contracts/package-export';
|
|
5
|
+
tslib_1.__exportStar(require("./PipelineContext"), exports);
|
|
6
|
+
// export * from '@codiac.io/codiac-relay-contracts/project-config';
|
|
7
|
+
tslib_1.__exportStar(require("./scaffolding"), exports);
|
|
8
|
+
// export * from '@codiac.io/codiac-relay-contracts/scoped-config';
|
|
9
|
+
// export * from '@codiac.io/codiac-relay-contracts/submodule';
|
|
10
|
+
tslib_1.__exportStar(require("./cli-config"), exports);
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ops/entities/index.ts"],"names":[],"mappings":";;;AAAA,oEAAoE;AACpE,4DAAkC;AAClC,oEAAoE;AACpE,wDAA8B;AAC9B,mEAAmE;AACnE,+DAA+D;AAC/D,uDAA6B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProjectConfig } from '@codiac.io/codiac-relay-contracts';
|
|
2
|
+
import { LocalOps } from '../LocalOps';
|
|
3
|
+
export type ProjectInitHandler = (iconfig: ProjectConfig) => Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* Parameters for initializing a new codiac project.
|
|
6
|
+
* @param sccIgnoreFile Ignore specification for the source code control provider.
|
|
7
|
+
* This file is the first one scaffolded in to prevent the node_modules crazy folder contents
|
|
8
|
+
* from overwhelming the source code provider's change tracker.
|
|
9
|
+
*/
|
|
10
|
+
export declare class Scaffolding {
|
|
11
|
+
name: string;
|
|
12
|
+
npmDependencies: string[];
|
|
13
|
+
npmDevDependencies: string[];
|
|
14
|
+
scaffoldFolders: string[];
|
|
15
|
+
scaffoldFiles: string[];
|
|
16
|
+
sccIgnoreFile?: string | undefined;
|
|
17
|
+
constructor(name: string, npmDependencies?: string[], npmDevDependencies?: string[], scaffoldFolders?: string[], scaffoldFiles?: string[], sccIgnoreFile?: string | undefined);
|
|
18
|
+
afterInitHandler?: (projectRoot: string, config: ProjectConfig, localOps: LocalOps) => Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Scaffolding = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Parameters for initializing a new codiac project.
|
|
6
|
+
* @param sccIgnoreFile Ignore specification for the source code control provider.
|
|
7
|
+
* This file is the first one scaffolded in to prevent the node_modules crazy folder contents
|
|
8
|
+
* from overwhelming the source code provider's change tracker.
|
|
9
|
+
*/
|
|
10
|
+
class Scaffolding {
|
|
11
|
+
constructor(name, npmDependencies = [], npmDevDependencies = [], scaffoldFolders = [], scaffoldFiles = [], sccIgnoreFile) {
|
|
12
|
+
this.name = name;
|
|
13
|
+
this.npmDependencies = npmDependencies;
|
|
14
|
+
this.npmDevDependencies = npmDevDependencies;
|
|
15
|
+
this.scaffoldFolders = scaffoldFolders;
|
|
16
|
+
this.scaffoldFiles = scaffoldFiles;
|
|
17
|
+
this.sccIgnoreFile = sccIgnoreFile;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Scaffolding = Scaffolding;
|
|
21
|
+
//# sourceMappingURL=scaffolding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffolding.js","sourceRoot":"","sources":["../../../src/ops/entities/scaffolding.ts"],"names":[],"mappings":";;;AAMA;;;;;GAKG;AACH,MAAa,WAAW;IAEtB,YAAmB,IAAY,EAAS,kBAA4B,EAAE,EAC7D,qBAA+B,EAAE,EACjC,kBAA4B,EAAE,EAC9B,gBAA0B,EAAE,EAC5B,aAAsB;QAJZ,SAAI,GAAJ,IAAI,CAAQ;QAAS,oBAAe,GAAf,eAAe,CAAe;QAC7D,uBAAkB,GAAlB,kBAAkB,CAAe;QACjC,oBAAe,GAAf,eAAe,CAAe;QAC9B,kBAAa,GAAb,aAAa,CAAe;QAC5B,kBAAa,GAAb,aAAa,CAAS;IAC/B,CAAC;CAMF;AAbD,kCAaC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IBetterLogger } from '@codiac.io/codiac-common/IBetterLogger';
|
|
2
|
+
import { IdentityProvider, TokenizedIdentity } from '@codiac.io/codiac-relay-contracts';
|
|
3
|
+
import { IIdentityAdapter } from '../i-identity-handler';
|
|
4
|
+
import { npmrcIdentity } from './npm-identity-adapter-base';
|
|
5
|
+
export declare class azartIdentity extends TokenizedIdentity {
|
|
6
|
+
organization: string;
|
|
7
|
+
feed: string;
|
|
8
|
+
email: string;
|
|
9
|
+
constructor(provider: IdentityProvider, registryUrl: string, token: string, organization: string, feed: string, email: string, scope?: string | undefined, tokenName?: string | undefined);
|
|
10
|
+
}
|
|
11
|
+
export declare class azartIdentityAdapter implements IIdentityAdapter {
|
|
12
|
+
private _projectRoot;
|
|
13
|
+
private logger;
|
|
14
|
+
constructor(_projectRoot: string, logger: IBetterLogger);
|
|
15
|
+
readonly provider = IdentityProvider["azart"];
|
|
16
|
+
createIdentity(token: string, input: any): TokenizedIdentity;
|
|
17
|
+
protected buildDefaultRegistryUrl(organization: string, feed: string): string;
|
|
18
|
+
syncIdentities(identities: TokenizedIdentity[]): Promise<npmrcIdentity[]>;
|
|
19
|
+
}
|