namirasoft-container-registry 1.4.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/dist/NamirasoftContainerRegistryServer.d.ts +19 -0
- package/dist/NamirasoftContainerRegistryServer.js +26 -0
- package/dist/NamirasoftContainerRegistryServer.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerBase.d.ts +5 -0
- package/dist/NamirasoftContainerRegistryServerBase.js +11 -0
- package/dist/NamirasoftContainerRegistryServerBase.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistry.d.ts +18 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistry.js +64 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistry.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.d.ts +17 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.js +56 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryField.d.ts +18 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryField.js +64 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryField.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.d.ts +18 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.js +64 -0
- package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerHealthz.d.ts +7 -0
- package/dist/NamirasoftContainerRegistryServerHealthz.js +28 -0
- package/dist/NamirasoftContainerRegistryServerHealthz.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerMetrics.d.ts +7 -0
- package/dist/NamirasoftContainerRegistryServerMetrics.js +28 -0
- package/dist/NamirasoftContainerRegistryServerMetrics.js.map +1 -0
- package/dist/NamirasoftContainerRegistryServerValue.d.ts +7 -0
- package/dist/NamirasoftContainerRegistryServerValue.js +29 -0
- package/dist/NamirasoftContainerRegistryServerValue.js.map +1 -0
- package/dist/command/ContainerRegistryCategoryCommand.d.ts +4 -0
- package/dist/command/ContainerRegistryCategoryCommand.js +21 -0
- package/dist/command/ContainerRegistryCategoryCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCategoryCreateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryCategoryCreateCommand.js +49 -0
- package/dist/command/ContainerRegistryCategoryCreateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCategoryDeleteCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryCategoryDeleteCommand.js +38 -0
- package/dist/command/ContainerRegistryCategoryDeleteCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCategoryGetCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryCategoryGetCommand.js +38 -0
- package/dist/command/ContainerRegistryCategoryGetCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCategoryListCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryCategoryListCommand.js +38 -0
- package/dist/command/ContainerRegistryCategoryListCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCommand.d.ts +4 -0
- package/dist/command/ContainerRegistryCommand.js +23 -0
- package/dist/command/ContainerRegistryCommand.js.map +1 -0
- package/dist/command/ContainerRegistryCreateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryCreateCommand.js +76 -0
- package/dist/command/ContainerRegistryCreateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryDeleteCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryDeleteCommand.js +38 -0
- package/dist/command/ContainerRegistryDeleteCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldCommand.d.ts +4 -0
- package/dist/command/ContainerRegistryFieldCommand.js +23 -0
- package/dist/command/ContainerRegistryFieldCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldCreateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryFieldCreateCommand.js +58 -0
- package/dist/command/ContainerRegistryFieldCreateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldDeleteCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryFieldDeleteCommand.js +38 -0
- package/dist/command/ContainerRegistryFieldDeleteCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldGetCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryFieldGetCommand.js +38 -0
- package/dist/command/ContainerRegistryFieldGetCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldListCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryFieldListCommand.js +38 -0
- package/dist/command/ContainerRegistryFieldListCommand.js.map +1 -0
- package/dist/command/ContainerRegistryFieldUpdateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryFieldUpdateCommand.js +58 -0
- package/dist/command/ContainerRegistryFieldUpdateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryGetCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryGetCommand.js +38 -0
- package/dist/command/ContainerRegistryGetCommand.js.map +1 -0
- package/dist/command/ContainerRegistryListCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryListCommand.js +38 -0
- package/dist/command/ContainerRegistryListCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagCommand.d.ts +4 -0
- package/dist/command/ContainerRegistryTagCommand.js +23 -0
- package/dist/command/ContainerRegistryTagCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagCreateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryTagCreateCommand.js +58 -0
- package/dist/command/ContainerRegistryTagCreateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagDeleteCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryTagDeleteCommand.js +38 -0
- package/dist/command/ContainerRegistryTagDeleteCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagGetCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryTagGetCommand.js +38 -0
- package/dist/command/ContainerRegistryTagGetCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagListCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryTagListCommand.js +38 -0
- package/dist/command/ContainerRegistryTagListCommand.js.map +1 -0
- package/dist/command/ContainerRegistryTagUpdateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryTagUpdateCommand.js +58 -0
- package/dist/command/ContainerRegistryTagUpdateCommand.js.map +1 -0
- package/dist/command/ContainerRegistryUpdateCommand.d.ts +5 -0
- package/dist/command/ContainerRegistryUpdateCommand.js +76 -0
- package/dist/command/ContainerRegistryUpdateCommand.js.map +1 -0
- package/dist/command/HealthzCommand.d.ts +4 -0
- package/dist/command/HealthzCommand.js +15 -0
- package/dist/command/HealthzCommand.js.map +1 -0
- package/dist/command/HealthzGetCommand.d.ts +5 -0
- package/dist/command/HealthzGetCommand.js +38 -0
- package/dist/command/HealthzGetCommand.js.map +1 -0
- package/dist/command/MetricsCommand.d.ts +4 -0
- package/dist/command/MetricsCommand.js +15 -0
- package/dist/command/MetricsCommand.js.map +1 -0
- package/dist/command/MetricsGetCommand.d.ts +5 -0
- package/dist/command/MetricsGetCommand.js +38 -0
- package/dist/command/MetricsGetCommand.js.map +1 -0
- package/dist/command/ValueCommand.d.ts +4 -0
- package/dist/command/ValueCommand.js +15 -0
- package/dist/command/ValueCommand.js.map +1 -0
- package/dist/command/ValueListCommand.d.ts +5 -0
- package/dist/command/ValueListCommand.js +38 -0
- package/dist/command/ValueListCommand.js.map +1 -0
- package/dist/command/cli.d.ts +2 -0
- package/dist/command/cli.js +26 -0
- package/dist/command/cli.js.map +1 -0
- package/dist/enum/ContainerRegistryType.d.ts +13 -0
- package/dist/enum/ContainerRegistryType.js +18 -0
- package/dist/enum/ContainerRegistryType.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +66 -0
- package/dist/index.js.map +1 -0
- package/dist/meta/ContainerRegistryMetaTable.d.ts +18 -0
- package/dist/meta/ContainerRegistryMetaTable.js +41 -0
- package/dist/meta/ContainerRegistryMetaTable.js.map +1 -0
- package/dist/meta/NamirasoftContainerRegistryMetaDatabase.d.ts +13 -0
- package/dist/meta/NamirasoftContainerRegistryMetaDatabase.js +27 -0
- package/dist/meta/NamirasoftContainerRegistryMetaDatabase.js.map +1 -0
- package/dist/row/ContainerRegistryCategoryRow.d.ts +8 -0
- package/dist/row/ContainerRegistryCategoryRow.js +3 -0
- package/dist/row/ContainerRegistryCategoryRow.js.map +1 -0
- package/dist/row/ContainerRegistryFieldRow.d.ts +9 -0
- package/dist/row/ContainerRegistryFieldRow.js +3 -0
- package/dist/row/ContainerRegistryFieldRow.js.map +1 -0
- package/dist/row/ContainerRegistryInputRow.d.ts +7 -0
- package/dist/row/ContainerRegistryInputRow.js +3 -0
- package/dist/row/ContainerRegistryInputRow.js.map +1 -0
- package/dist/row/ContainerRegistryRow.d.ts +12 -0
- package/dist/row/ContainerRegistryRow.js +3 -0
- package/dist/row/ContainerRegistryRow.js.map +1 -0
- package/dist/row/ContainerRegistryTagRow.d.ts +9 -0
- package/dist/row/ContainerRegistryTagRow.js +3 -0
- package/dist/row/ContainerRegistryTagRow.js.map +1 -0
- package/dist/row/EntityCategoryInputRow.d.ts +3 -0
- package/dist/row/EntityCategoryInputRow.js +3 -0
- package/dist/row/EntityCategoryInputRow.js.map +1 -0
- package/dist/row/EntityFieldInputRow.d.ts +4 -0
- package/dist/row/EntityFieldInputRow.js +3 -0
- package/dist/row/EntityFieldInputRow.js.map +1 -0
- package/dist/row/EntityTagInputRow.d.ts +4 -0
- package/dist/row/EntityTagInputRow.js +3 -0
- package/dist/row/EntityTagInputRow.js.map +1 -0
- package/logo.png +0 -0
- package/package.json +28 -0
- package/src/NamirasoftContainerRegistryServer.ts +51 -0
- package/src/NamirasoftContainerRegistryServerBase.ts +30 -0
- package/src/NamirasoftContainerRegistryServerContainerRegistry.ts +71 -0
- package/src/NamirasoftContainerRegistryServerContainerRegistryCategory.ts +64 -0
- package/src/NamirasoftContainerRegistryServerContainerRegistryField.ts +71 -0
- package/src/NamirasoftContainerRegistryServerContainerRegistryTag.ts +71 -0
- package/src/NamirasoftContainerRegistryServerHealthz.ts +37 -0
- package/src/NamirasoftContainerRegistryServerMetrics.ts +37 -0
- package/src/NamirasoftContainerRegistryServerValue.ts +38 -0
- package/src/command/ContainerRegistryCategoryCommand.ts +38 -0
- package/src/command/ContainerRegistryCategoryCreateCommand.ts +56 -0
- package/src/command/ContainerRegistryCategoryDeleteCommand.ts +45 -0
- package/src/command/ContainerRegistryCategoryGetCommand.ts +45 -0
- package/src/command/ContainerRegistryCategoryListCommand.ts +45 -0
- package/src/command/ContainerRegistryCommand.ts +40 -0
- package/src/command/ContainerRegistryCreateCommand.ts +83 -0
- package/src/command/ContainerRegistryDeleteCommand.ts +45 -0
- package/src/command/ContainerRegistryFieldCommand.ts +40 -0
- package/src/command/ContainerRegistryFieldCreateCommand.ts +65 -0
- package/src/command/ContainerRegistryFieldDeleteCommand.ts +45 -0
- package/src/command/ContainerRegistryFieldGetCommand.ts +45 -0
- package/src/command/ContainerRegistryFieldListCommand.ts +45 -0
- package/src/command/ContainerRegistryFieldUpdateCommand.ts +65 -0
- package/src/command/ContainerRegistryGetCommand.ts +45 -0
- package/src/command/ContainerRegistryListCommand.ts +45 -0
- package/src/command/ContainerRegistryTagCommand.ts +40 -0
- package/src/command/ContainerRegistryTagCreateCommand.ts +65 -0
- package/src/command/ContainerRegistryTagDeleteCommand.ts +45 -0
- package/src/command/ContainerRegistryTagGetCommand.ts +45 -0
- package/src/command/ContainerRegistryTagListCommand.ts +45 -0
- package/src/command/ContainerRegistryTagUpdateCommand.ts +65 -0
- package/src/command/ContainerRegistryUpdateCommand.ts +83 -0
- package/src/command/HealthzCommand.ts +32 -0
- package/src/command/HealthzGetCommand.ts +45 -0
- package/src/command/MetricsCommand.ts +32 -0
- package/src/command/MetricsGetCommand.ts +45 -0
- package/src/command/ValueCommand.ts +32 -0
- package/src/command/ValueListCommand.ts +45 -0
- package/src/command/cli.ts +45 -0
- package/src/enum/ContainerRegistryType.ts +34 -0
- package/src/index.ts +69 -0
- package/src/meta/ContainerRegistryMetaTable.ts +64 -0
- package/src/meta/NamirasoftContainerRegistryMetaDatabase.ts +51 -0
- package/src/row/ContainerRegistryCategoryRow.ts +29 -0
- package/src/row/ContainerRegistryFieldRow.ts +30 -0
- package/src/row/ContainerRegistryInputRow.ts +29 -0
- package/src/row/ContainerRegistryRow.ts +34 -0
- package/src/row/ContainerRegistryTagRow.ts +30 -0
- package/src/row/EntityCategoryInputRow.ts +24 -0
- package/src/row/EntityFieldInputRow.ts +25 -0
- package/src/row/EntityTagInputRow.ts +25 -0
- package/tsconfig.json +42 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContainerRegistryUpdateCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftContainerRegistryServer_1 = require("../NamirasoftContainerRegistryServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ContainerRegistryUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["id"], [
|
|
20
|
+
{
|
|
21
|
+
name: "name",
|
|
22
|
+
short: "",
|
|
23
|
+
description: "Provides the value of 'name' in body",
|
|
24
|
+
optional: false,
|
|
25
|
+
args: ["name"],
|
|
26
|
+
defaults: [""]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "type",
|
|
30
|
+
short: "",
|
|
31
|
+
description: "Provides the value of 'type' in body",
|
|
32
|
+
optional: false,
|
|
33
|
+
args: ["type"],
|
|
34
|
+
defaults: [""]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "meta",
|
|
38
|
+
short: "",
|
|
39
|
+
description: "Provides the value of 'meta' in body",
|
|
40
|
+
optional: true,
|
|
41
|
+
args: ["meta"],
|
|
42
|
+
defaults: [""]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: "description",
|
|
46
|
+
short: "",
|
|
47
|
+
description: "Provides the value of 'description' in body",
|
|
48
|
+
optional: true,
|
|
49
|
+
args: ["description"],
|
|
50
|
+
defaults: [""]
|
|
51
|
+
}
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
exec() {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
let token = this.app.storage.getNSAToken();
|
|
57
|
+
if (token == null)
|
|
58
|
+
throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
|
|
59
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
60
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
61
|
+
manager.setValue(token, false);
|
|
62
|
+
let url = this.app.storage.getItem("ns-container-registry-server-url");
|
|
63
|
+
let server = new NamirasoftContainerRegistryServer_1.NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
|
|
64
|
+
let ans = yield server.container_registry.Update(this.arg_values[0], {
|
|
65
|
+
name: this.option_values.name,
|
|
66
|
+
type: this.option_values.type,
|
|
67
|
+
meta: this.option_values.meta,
|
|
68
|
+
description: this.option_values.description
|
|
69
|
+
});
|
|
70
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.ContainerRegistryUpdateCommand = ContainerRegistryUpdateCommand;
|
|
75
|
+
;
|
|
76
|
+
//# sourceMappingURL=ContainerRegistryUpdateCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerRegistryUpdateCommand.js","sourceRoot":"","sources":["../../src/command/ContainerRegistryUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4FAAyF;AACzF,2DAAkD;AAElD,MAAa,8BAA+B,SAAQ,sCAAgB;IAEhE,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;SACA,CAAC,CAAC;IACX,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;YAC3J,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;YACvE,IAAI,MAAM,GAAG,IAAI,qEAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACxG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;gBACjE,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;aAC9C,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAzDD,wEAyDC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthzCommand = void 0;
|
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const HealthzGetCommand_1 = require("./HealthzGetCommand");
|
|
6
|
+
class HealthzCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
|
+
constructor(argv) {
|
|
8
|
+
super(argv, {
|
|
9
|
+
"get": HealthzGetCommand_1.HealthzGetCommand,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.HealthzCommand = HealthzCommand;
|
|
14
|
+
;
|
|
15
|
+
//# sourceMappingURL=HealthzCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HealthzCommand.js","sourceRoot":"","sources":["../../src/command/HealthzCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2DAAwD;AAExD,MAAa,cAAe,SAAQ,0CAAoB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,KAAK,EAAE,qCAAiB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,wCAQC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HealthzGetCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftContainerRegistryServer_1 = require("../NamirasoftContainerRegistryServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class HealthzGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, [], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-container-registry-server-url");
|
|
30
|
+
let server = new NamirasoftContainerRegistryServer_1.NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.healthz.Get();
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.HealthzGetCommand = HealthzGetCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=HealthzGetCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HealthzGetCommand.js","sourceRoot":"","sources":["../../src/command/HealthzGetCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4FAAyF;AACzF,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;YAC3J,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;YACvE,IAAI,MAAM,GAAG,IAAI,qEAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACxG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACrC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,8CAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MetricsCommand = void 0;
|
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const MetricsGetCommand_1 = require("./MetricsGetCommand");
|
|
6
|
+
class MetricsCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
|
+
constructor(argv) {
|
|
8
|
+
super(argv, {
|
|
9
|
+
"get": MetricsGetCommand_1.MetricsGetCommand,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.MetricsCommand = MetricsCommand;
|
|
14
|
+
;
|
|
15
|
+
//# sourceMappingURL=MetricsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsCommand.js","sourceRoot":"","sources":["../../src/command/MetricsCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,2DAAwD;AAExD,MAAa,cAAe,SAAQ,0CAAoB;IAEpD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,KAAK,EAAE,qCAAiB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,wCAQC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MetricsGetCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftContainerRegistryServer_1 = require("../NamirasoftContainerRegistryServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class MetricsGetCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, [], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-container-registry-server-url");
|
|
30
|
+
let server = new NamirasoftContainerRegistryServer_1.NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.metrics.Get();
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.MetricsGetCommand = MetricsGetCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=MetricsGetCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsGetCommand.js","sourceRoot":"","sources":["../../src/command/MetricsGetCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4FAAyF;AACzF,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxB,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;YAC3J,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;YACvE,IAAI,MAAM,GAAG,IAAI,qEAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACxG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YACrC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,8CAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValueCommand = void 0;
|
|
4
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
5
|
+
const ValueListCommand_1 = require("./ValueListCommand");
|
|
6
|
+
class ValueCommand extends namirasoft_node_cli_1.BaseNavigatorCommand {
|
|
7
|
+
constructor(argv) {
|
|
8
|
+
super(argv, {
|
|
9
|
+
"list": ValueListCommand_1.ValueListCommand,
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ValueCommand = ValueCommand;
|
|
14
|
+
;
|
|
15
|
+
//# sourceMappingURL=ValueCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueCommand.js","sourceRoot":"","sources":["../../src/command/ValueCommand.ts"],"names":[],"mappings":";;;AAoBA,6DAA2D;AAC3D,yDAAsD;AAEtD,MAAa,YAAa,SAAQ,0CAAoB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE;YACR,MAAM,EAAE,mCAAgB;SAC3B,CAAC,CAAC;IACP,CAAC;CACJ;AARD,oCAQC;AAAA,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ValueListCommand = void 0;
|
|
13
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
14
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
15
|
+
const NamirasoftContainerRegistryServer_1 = require("../NamirasoftContainerRegistryServer");
|
|
16
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
17
|
+
class ValueListCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
18
|
+
constructor(argv) {
|
|
19
|
+
super(argv, ["table", "column", "search", "field_id", "limit"], []);
|
|
20
|
+
}
|
|
21
|
+
exec() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let token = this.app.storage.getNSAToken();
|
|
24
|
+
if (token == null)
|
|
25
|
+
throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
|
|
26
|
+
let storage = new namirasoft_core_1.IStorageMemoryDedicated();
|
|
27
|
+
let manager = new namirasoft_account_1.TokenManager(storage, () => { });
|
|
28
|
+
manager.setValue(token, false);
|
|
29
|
+
let url = this.app.storage.getItem("ns-container-registry-server-url");
|
|
30
|
+
let server = new NamirasoftContainerRegistryServer_1.NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
|
|
31
|
+
let ans = yield server.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
|
|
32
|
+
this.app.logger.success(JSON.stringify(ans));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ValueListCommand = ValueListCommand;
|
|
37
|
+
;
|
|
38
|
+
//# sourceMappingURL=ValueListCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueListCommand.js","sourceRoot":"","sources":["../../src/command/ValueListCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAA0D;AAC1D,4FAAyF;AACzF,2DAAkD;AAElD,MAAa,gBAAiB,SAAQ,sCAAgB;IAElD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IACc,IAAI;;YAEf,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC3C,IAAI,KAAK,IAAI,IAAI;gBACb,MAAM,IAAI,KAAK,CAAC,qIAAqI,CAAC,CAAC;YAC3J,IAAI,OAAO,GAAG,IAAI,yCAAuB,EAAE,CAAC;YAC5C,IAAI,OAAO,GAAG,IAAI,iCAAY,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,kCAAkC,CAAC,CAAC;YACvE,IAAI,MAAM,GAAG,IAAI,qEAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACxG,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACtI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAnBD,4CAmBC;AAAA,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
|
+
const namirasoft_node_cli_1 = require("namirasoft-node-cli");
|
|
6
|
+
const namirasoft_node_cli_2 = require("namirasoft-node-cli");
|
|
7
|
+
const ContainerRegistryCategoryCommand_1 = require("./ContainerRegistryCategoryCommand");
|
|
8
|
+
const ContainerRegistryCommand_1 = require("./ContainerRegistryCommand");
|
|
9
|
+
const ContainerRegistryFieldCommand_1 = require("./ContainerRegistryFieldCommand");
|
|
10
|
+
const ContainerRegistryTagCommand_1 = require("./ContainerRegistryTagCommand");
|
|
11
|
+
const HealthzCommand_1 = require("./HealthzCommand");
|
|
12
|
+
const MetricsCommand_1 = require("./MetricsCommand");
|
|
13
|
+
const ValueCommand_1 = require("./ValueCommand");
|
|
14
|
+
let app = new namirasoft_node_cli_1.Application("ns-container-registry", new namirasoft_node_cli_1.BaseStorage(), {
|
|
15
|
+
"healthz": HealthzCommand_1.HealthzCommand,
|
|
16
|
+
"metrics": MetricsCommand_1.MetricsCommand,
|
|
17
|
+
"value": ValueCommand_1.ValueCommand,
|
|
18
|
+
"containerregistrycategory": ContainerRegistryCategoryCommand_1.ContainerRegistryCategoryCommand,
|
|
19
|
+
"containerregistryfield": ContainerRegistryFieldCommand_1.ContainerRegistryFieldCommand,
|
|
20
|
+
"containerregistrytag": ContainerRegistryTagCommand_1.ContainerRegistryTagCommand,
|
|
21
|
+
"containerregistry": ContainerRegistryCommand_1.ContainerRegistryCommand,
|
|
22
|
+
"account": namirasoft_account_1.AccountCommand,
|
|
23
|
+
"config": (argv) => new namirasoft_node_cli_2.ConfigCommand(argv, ["ns-container-registry-server-url"])
|
|
24
|
+
});
|
|
25
|
+
app.run();
|
|
26
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/command/cli.ts"],"names":[],"mappings":";;;AAqBA,2DAAoD;AACpD,6DAA+D;AAC/D,6DAAoD;AACpD,yFAAsF;AACtF,yEAAsE;AACtE,mFAAgF;AAChF,+EAA4E;AAC5E,qDAAkD;AAClD,qDAAkD;AAClD,iDAA8C;AAE9C,IAAI,GAAG,GAAG,IAAI,iCAAW,CAAC,uBAAuB,EAAE,IAAI,iCAAW,EAAE,EAChE;IACI,SAAS,EAAE,+BAAc;IACzB,SAAS,EAAE,+BAAc;IACzB,OAAO,EAAE,2BAAY;IACrB,2BAA2B,EAAE,mEAAgC;IAC7D,wBAAwB,EAAE,6DAA6B;IACvD,sBAAsB,EAAE,yDAA2B;IACnD,mBAAmB,EAAE,mDAAwB;IAC7C,SAAS,EAAE,mCAAc;IACzB,QAAQ,EAAE,CAAC,IAAc,EAAE,EAAE,CAAC,IAAI,mCAAa,CAAC,IAAI,EAAE,CAAC,kCAAkC,CAAC,CAAC;CAC9F,CAAC,CAAC;AACP,GAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum ContainerRegistryType {
|
|
2
|
+
PublicRepository = "PublicRepository",
|
|
3
|
+
AWSECR = "AWSECR",
|
|
4
|
+
AzureACR = "AzureACR",
|
|
5
|
+
GoogleContainerRegistry = "GoogleContainerRegistry",
|
|
6
|
+
GoogleArtifactRegistry = "GoogleArtifactRegistry",
|
|
7
|
+
SonatypeNexus = "SonatypeNexus",
|
|
8
|
+
JFrogArtifactory = "JFrogArtifactory",
|
|
9
|
+
Harbor = "Harbor",
|
|
10
|
+
GitHubContainerRegistry = "GitHubContainerRegistry",
|
|
11
|
+
GitLabContainerRegistry = "GitLabContainerRegistry",
|
|
12
|
+
PrivateRegistry = "PrivateRegistry"
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContainerRegistryType = void 0;
|
|
4
|
+
var ContainerRegistryType;
|
|
5
|
+
(function (ContainerRegistryType) {
|
|
6
|
+
ContainerRegistryType["PublicRepository"] = "PublicRepository";
|
|
7
|
+
ContainerRegistryType["AWSECR"] = "AWSECR";
|
|
8
|
+
ContainerRegistryType["AzureACR"] = "AzureACR";
|
|
9
|
+
ContainerRegistryType["GoogleContainerRegistry"] = "GoogleContainerRegistry";
|
|
10
|
+
ContainerRegistryType["GoogleArtifactRegistry"] = "GoogleArtifactRegistry";
|
|
11
|
+
ContainerRegistryType["SonatypeNexus"] = "SonatypeNexus";
|
|
12
|
+
ContainerRegistryType["JFrogArtifactory"] = "JFrogArtifactory";
|
|
13
|
+
ContainerRegistryType["Harbor"] = "Harbor";
|
|
14
|
+
ContainerRegistryType["GitHubContainerRegistry"] = "GitHubContainerRegistry";
|
|
15
|
+
ContainerRegistryType["GitLabContainerRegistry"] = "GitLabContainerRegistry";
|
|
16
|
+
ContainerRegistryType["PrivateRegistry"] = "PrivateRegistry";
|
|
17
|
+
})(ContainerRegistryType || (exports.ContainerRegistryType = ContainerRegistryType = {}));
|
|
18
|
+
//# sourceMappingURL=ContainerRegistryType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerRegistryType.js","sourceRoot":"","sources":["../../src/enum/ContainerRegistryType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,qBAaX;AAbD,WAAY,qBAAqB;IAE7B,8DAAqC,CAAA;IACrC,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;IACrB,4EAAmD,CAAA;IACnD,0EAAiD,CAAA;IACjD,wDAA+B,CAAA;IAC/B,8DAAqC,CAAA;IACrC,0CAAiB,CAAA;IACjB,4EAAmD,CAAA;IACnD,4EAAmD,CAAA;IACnD,4DAAmC,CAAA;AACvC,CAAC,EAbW,qBAAqB,qCAArB,qBAAqB,QAahC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export * from "./NamirasoftContainerRegistryServer";
|
|
2
|
+
export * from "./NamirasoftContainerRegistryServerBase";
|
|
3
|
+
export * from "./NamirasoftContainerRegistryServerContainerRegistry";
|
|
4
|
+
export * from "./NamirasoftContainerRegistryServerContainerRegistryCategory";
|
|
5
|
+
export * from "./NamirasoftContainerRegistryServerContainerRegistryField";
|
|
6
|
+
export * from "./NamirasoftContainerRegistryServerContainerRegistryTag";
|
|
7
|
+
export * from "./NamirasoftContainerRegistryServerHealthz";
|
|
8
|
+
export * from "./NamirasoftContainerRegistryServerMetrics";
|
|
9
|
+
export * from "./NamirasoftContainerRegistryServerValue";
|
|
10
|
+
export * from "./command/ContainerRegistryCategoryCommand";
|
|
11
|
+
export * from "./command/ContainerRegistryCategoryCreateCommand";
|
|
12
|
+
export * from "./command/ContainerRegistryCategoryDeleteCommand";
|
|
13
|
+
export * from "./command/ContainerRegistryCategoryGetCommand";
|
|
14
|
+
export * from "./command/ContainerRegistryCategoryListCommand";
|
|
15
|
+
export * from "./command/ContainerRegistryCommand";
|
|
16
|
+
export * from "./command/ContainerRegistryCreateCommand";
|
|
17
|
+
export * from "./command/ContainerRegistryDeleteCommand";
|
|
18
|
+
export * from "./command/ContainerRegistryFieldCommand";
|
|
19
|
+
export * from "./command/ContainerRegistryFieldCreateCommand";
|
|
20
|
+
export * from "./command/ContainerRegistryFieldDeleteCommand";
|
|
21
|
+
export * from "./command/ContainerRegistryFieldGetCommand";
|
|
22
|
+
export * from "./command/ContainerRegistryFieldListCommand";
|
|
23
|
+
export * from "./command/ContainerRegistryFieldUpdateCommand";
|
|
24
|
+
export * from "./command/ContainerRegistryGetCommand";
|
|
25
|
+
export * from "./command/ContainerRegistryListCommand";
|
|
26
|
+
export * from "./command/ContainerRegistryTagCommand";
|
|
27
|
+
export * from "./command/ContainerRegistryTagCreateCommand";
|
|
28
|
+
export * from "./command/ContainerRegistryTagDeleteCommand";
|
|
29
|
+
export * from "./command/ContainerRegistryTagGetCommand";
|
|
30
|
+
export * from "./command/ContainerRegistryTagListCommand";
|
|
31
|
+
export * from "./command/ContainerRegistryTagUpdateCommand";
|
|
32
|
+
export * from "./command/ContainerRegistryUpdateCommand";
|
|
33
|
+
export * from "./command/HealthzCommand";
|
|
34
|
+
export * from "./command/HealthzGetCommand";
|
|
35
|
+
export * from "./command/MetricsCommand";
|
|
36
|
+
export * from "./command/MetricsGetCommand";
|
|
37
|
+
export * from "./command/ValueCommand";
|
|
38
|
+
export * from "./command/ValueListCommand";
|
|
39
|
+
export * from "./enum/ContainerRegistryType";
|
|
40
|
+
export * from "./meta/ContainerRegistryMetaTable";
|
|
41
|
+
export * from "./meta/NamirasoftContainerRegistryMetaDatabase";
|
|
42
|
+
export * from "./row/ContainerRegistryCategoryRow";
|
|
43
|
+
export * from "./row/ContainerRegistryFieldRow";
|
|
44
|
+
export * from "./row/ContainerRegistryInputRow";
|
|
45
|
+
export * from "./row/ContainerRegistryRow";
|
|
46
|
+
export * from "./row/ContainerRegistryTagRow";
|
|
47
|
+
export * from "./row/EntityCategoryInputRow";
|
|
48
|
+
export * from "./row/EntityFieldInputRow";
|
|
49
|
+
export * from "./row/EntityTagInputRow";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
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("./NamirasoftContainerRegistryServer"), exports);
|
|
18
|
+
__exportStar(require("./NamirasoftContainerRegistryServerBase"), exports);
|
|
19
|
+
__exportStar(require("./NamirasoftContainerRegistryServerContainerRegistry"), exports);
|
|
20
|
+
__exportStar(require("./NamirasoftContainerRegistryServerContainerRegistryCategory"), exports);
|
|
21
|
+
__exportStar(require("./NamirasoftContainerRegistryServerContainerRegistryField"), exports);
|
|
22
|
+
__exportStar(require("./NamirasoftContainerRegistryServerContainerRegistryTag"), exports);
|
|
23
|
+
__exportStar(require("./NamirasoftContainerRegistryServerHealthz"), exports);
|
|
24
|
+
__exportStar(require("./NamirasoftContainerRegistryServerMetrics"), exports);
|
|
25
|
+
__exportStar(require("./NamirasoftContainerRegistryServerValue"), exports);
|
|
26
|
+
__exportStar(require("./command/ContainerRegistryCategoryCommand"), exports);
|
|
27
|
+
__exportStar(require("./command/ContainerRegistryCategoryCreateCommand"), exports);
|
|
28
|
+
__exportStar(require("./command/ContainerRegistryCategoryDeleteCommand"), exports);
|
|
29
|
+
__exportStar(require("./command/ContainerRegistryCategoryGetCommand"), exports);
|
|
30
|
+
__exportStar(require("./command/ContainerRegistryCategoryListCommand"), exports);
|
|
31
|
+
__exportStar(require("./command/ContainerRegistryCommand"), exports);
|
|
32
|
+
__exportStar(require("./command/ContainerRegistryCreateCommand"), exports);
|
|
33
|
+
__exportStar(require("./command/ContainerRegistryDeleteCommand"), exports);
|
|
34
|
+
__exportStar(require("./command/ContainerRegistryFieldCommand"), exports);
|
|
35
|
+
__exportStar(require("./command/ContainerRegistryFieldCreateCommand"), exports);
|
|
36
|
+
__exportStar(require("./command/ContainerRegistryFieldDeleteCommand"), exports);
|
|
37
|
+
__exportStar(require("./command/ContainerRegistryFieldGetCommand"), exports);
|
|
38
|
+
__exportStar(require("./command/ContainerRegistryFieldListCommand"), exports);
|
|
39
|
+
__exportStar(require("./command/ContainerRegistryFieldUpdateCommand"), exports);
|
|
40
|
+
__exportStar(require("./command/ContainerRegistryGetCommand"), exports);
|
|
41
|
+
__exportStar(require("./command/ContainerRegistryListCommand"), exports);
|
|
42
|
+
__exportStar(require("./command/ContainerRegistryTagCommand"), exports);
|
|
43
|
+
__exportStar(require("./command/ContainerRegistryTagCreateCommand"), exports);
|
|
44
|
+
__exportStar(require("./command/ContainerRegistryTagDeleteCommand"), exports);
|
|
45
|
+
__exportStar(require("./command/ContainerRegistryTagGetCommand"), exports);
|
|
46
|
+
__exportStar(require("./command/ContainerRegistryTagListCommand"), exports);
|
|
47
|
+
__exportStar(require("./command/ContainerRegistryTagUpdateCommand"), exports);
|
|
48
|
+
__exportStar(require("./command/ContainerRegistryUpdateCommand"), exports);
|
|
49
|
+
__exportStar(require("./command/HealthzCommand"), exports);
|
|
50
|
+
__exportStar(require("./command/HealthzGetCommand"), exports);
|
|
51
|
+
__exportStar(require("./command/MetricsCommand"), exports);
|
|
52
|
+
__exportStar(require("./command/MetricsGetCommand"), exports);
|
|
53
|
+
__exportStar(require("./command/ValueCommand"), exports);
|
|
54
|
+
__exportStar(require("./command/ValueListCommand"), exports);
|
|
55
|
+
__exportStar(require("./enum/ContainerRegistryType"), exports);
|
|
56
|
+
__exportStar(require("./meta/ContainerRegistryMetaTable"), exports);
|
|
57
|
+
__exportStar(require("./meta/NamirasoftContainerRegistryMetaDatabase"), exports);
|
|
58
|
+
__exportStar(require("./row/ContainerRegistryCategoryRow"), exports);
|
|
59
|
+
__exportStar(require("./row/ContainerRegistryFieldRow"), exports);
|
|
60
|
+
__exportStar(require("./row/ContainerRegistryInputRow"), exports);
|
|
61
|
+
__exportStar(require("./row/ContainerRegistryRow"), exports);
|
|
62
|
+
__exportStar(require("./row/ContainerRegistryTagRow"), exports);
|
|
63
|
+
__exportStar(require("./row/EntityCategoryInputRow"), exports);
|
|
64
|
+
__exportStar(require("./row/EntityFieldInputRow"), exports);
|
|
65
|
+
__exportStar(require("./row/EntityTagInputRow"), exports);
|
|
66
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,sEAAoD;AACpD,0EAAwD;AACxD,uFAAqE;AACrE,+FAA6E;AAC7E,4FAA0E;AAC1E,0FAAwE;AACxE,6EAA2D;AAC3D,6EAA2D;AAC3D,2EAAyD;AACzD,6EAA2D;AAC3D,mFAAiE;AACjE,mFAAiE;AACjE,gFAA8D;AAC9D,iFAA+D;AAC/D,qEAAmD;AACnD,2EAAyD;AACzD,2EAAyD;AACzD,0EAAwD;AACxD,gFAA8D;AAC9D,gFAA8D;AAC9D,6EAA2D;AAC3D,8EAA4D;AAC5D,gFAA8D;AAC9D,wEAAsD;AACtD,yEAAuD;AACvD,wEAAsD;AACtD,8EAA4D;AAC5D,8EAA4D;AAC5D,2EAAyD;AACzD,4EAA0D;AAC1D,8EAA4D;AAC5D,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,2DAAyC;AACzC,8DAA4C;AAC5C,yDAAuC;AACvC,6DAA2C;AAC3C,+DAA6C;AAC7C,oEAAkD;AAClD,iFAA+D;AAC/D,qEAAmD;AACnD,kEAAgD;AAChD,kEAAgD;AAChD,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseMetaColumn } from "namirasoft-core";
|
|
2
|
+
import { ContainerRegistryRow } from "../row/ContainerRegistryRow";
|
|
3
|
+
import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
|
|
4
|
+
import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
|
|
5
|
+
export declare class ContainerRegistryMetaTable extends NSBaseMetaTable<NamirasoftContainerRegistryServer, ContainerRegistryRow> {
|
|
6
|
+
columns: {
|
|
7
|
+
id: BaseMetaColumn;
|
|
8
|
+
user_id: BaseMetaColumn;
|
|
9
|
+
workspace_id: BaseMetaColumn;
|
|
10
|
+
name: BaseMetaColumn;
|
|
11
|
+
type: BaseMetaColumn;
|
|
12
|
+
meta: BaseMetaColumn;
|
|
13
|
+
description: BaseMetaColumn;
|
|
14
|
+
created_at: BaseMetaColumn;
|
|
15
|
+
updated_at: BaseMetaColumn;
|
|
16
|
+
};
|
|
17
|
+
constructor(database: NSBaseMetaDatabase<NamirasoftContainerRegistryServer>);
|
|
18
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ContainerRegistryMetaTable = void 0;
|
|
13
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
14
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
15
|
+
class ContainerRegistryMetaTable extends namirasoft_site_1.NSBaseMetaTable {
|
|
16
|
+
constructor(database) {
|
|
17
|
+
super(database, "container_registry", "Container Registry", new namirasoft_core_1.BaseUUID("sch"));
|
|
18
|
+
this.columns = {
|
|
19
|
+
id: new namirasoft_core_1.BaseMetaColumn(this, "id", "ID", "String", true),
|
|
20
|
+
user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User ID", "String", true),
|
|
21
|
+
workspace_id: new namirasoft_core_1.BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
|
|
22
|
+
name: new namirasoft_core_1.BaseMetaColumn(this, "name", "Name", "String", true),
|
|
23
|
+
type: new namirasoft_core_1.BaseMetaColumn(this, "type", "Type", "Enum", true),
|
|
24
|
+
meta: new namirasoft_core_1.BaseMetaColumn(this, "meta", "Meta", "Any", false),
|
|
25
|
+
description: new namirasoft_core_1.BaseMetaColumn(this, "description", "Description", "String", false),
|
|
26
|
+
created_at: new namirasoft_core_1.BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
|
|
27
|
+
updated_at: new namirasoft_core_1.BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
|
|
28
|
+
};
|
|
29
|
+
this.back_end.get = (id) => __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
let server = this.database.getServer();
|
|
31
|
+
return yield server.container_registry.Get(id);
|
|
32
|
+
});
|
|
33
|
+
this.back_end.list = (filters, page, size, sorts) => __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
let server = this.database.getServer();
|
|
35
|
+
return yield server.container_registry.List(filters, page, size, sorts);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ContainerRegistryMetaTable = ContainerRegistryMetaTable;
|
|
40
|
+
;
|
|
41
|
+
//# sourceMappingURL=ContainerRegistryMetaTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerRegistryMetaTable.js","sourceRoot":"","sources":["../../src/meta/ContainerRegistryMetaTable.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,qDAAiF;AAEjF,qDAAsE;AAGtE,MAAa,0BAA2B,SAAQ,iCAAwE;IAapH,YAAY,QAA+D;QAEvE,KAAK,CAAC,QAAQ,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,IAAI,0BAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,YAAY,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,CAAC;YACtF,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC9D,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC;YAC5D,IAAI,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC;YAC5D,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAO,EAAU,EAAE,EAAE;YAErC,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,kBAAkB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACnD,CAAC,CAAA,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAO,OAA4B,EAAE,IAAqB,EAAE,IAAqB,EAAE,KAAiB,EAAE,EAAE;YAEzH,IAAI,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;YACvC,OAAO,MAAM,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC5E,CAAC,CAAA,CAAC;IACN,CAAC;CACJ;AAtCD,gEAsCC;AAAA,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContainerRegistryMetaTable } from "./ContainerRegistryMetaTable";
|
|
2
|
+
import { NSBaseMetaDatabase } from "namirasoft-site";
|
|
3
|
+
import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
|
|
4
|
+
import { TokenManager } from "namirasoft-account";
|
|
5
|
+
export declare class NamirasoftContainerRegistryMetaDatabase extends NSBaseMetaDatabase<NamirasoftContainerRegistryServer> {
|
|
6
|
+
private manager?;
|
|
7
|
+
private onError?;
|
|
8
|
+
tables: {
|
|
9
|
+
container_registry: ContainerRegistryMetaTable;
|
|
10
|
+
};
|
|
11
|
+
constructor(manager?: TokenManager, onError?: (error: Error) => void);
|
|
12
|
+
getServer(): NamirasoftContainerRegistryServer;
|
|
13
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamirasoftContainerRegistryMetaDatabase = void 0;
|
|
4
|
+
const ContainerRegistryMetaTable_1 = require("./ContainerRegistryMetaTable");
|
|
5
|
+
const namirasoft_core_1 = require("namirasoft-core");
|
|
6
|
+
const namirasoft_site_1 = require("namirasoft-site");
|
|
7
|
+
const NamirasoftContainerRegistryServer_1 = require("../NamirasoftContainerRegistryServer");
|
|
8
|
+
class NamirasoftContainerRegistryMetaDatabase extends namirasoft_site_1.NSBaseMetaDatabase {
|
|
9
|
+
constructor(manager, onError) {
|
|
10
|
+
super({ id: "prd-1ebc32fd605d4f93", name: "Namirasoft Container Registry", headline: "Scalable Cloud Storage with Container Registry", description: "Namirasoft Container Registry enables you to create and manage storage across major cloud providers or fixed-size environments. Define your volume type, configure access, and provision storage quickly, all within the Namirasoft ecosystem.", logo: "https://static.namirasoft.com/image/namirasoft/container-registry/logo/base.png", link: "https://container-registry.namirasoft.com" });
|
|
11
|
+
this.manager = manager;
|
|
12
|
+
this.onError = onError;
|
|
13
|
+
this.tables = {
|
|
14
|
+
container_registry: new ContainerRegistryMetaTable_1.ContainerRegistryMetaTable(this),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
getServer() {
|
|
18
|
+
if (!this.manager || !this.onError)
|
|
19
|
+
throw new Error("Arguments of NamirasoftContainerRegistryMetaDatabase (manager, onError) are required for server operations.");
|
|
20
|
+
let NAME = namirasoft_site_1.NSBaseMetaDatabase.getServerBaseURL(this.product.name);
|
|
21
|
+
let BASE_URL = new namirasoft_core_1.EnvService(NAME, true).getString();
|
|
22
|
+
return new NamirasoftContainerRegistryServer_1.NamirasoftContainerRegistryServer(BASE_URL, this.manager, this.onError);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.NamirasoftContainerRegistryMetaDatabase = NamirasoftContainerRegistryMetaDatabase;
|
|
26
|
+
;
|
|
27
|
+
//# sourceMappingURL=NamirasoftContainerRegistryMetaDatabase.js.map
|