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.
Files changed (207) hide show
  1. package/dist/NamirasoftContainerRegistryServer.d.ts +19 -0
  2. package/dist/NamirasoftContainerRegistryServer.js +26 -0
  3. package/dist/NamirasoftContainerRegistryServer.js.map +1 -0
  4. package/dist/NamirasoftContainerRegistryServerBase.d.ts +5 -0
  5. package/dist/NamirasoftContainerRegistryServerBase.js +11 -0
  6. package/dist/NamirasoftContainerRegistryServerBase.js.map +1 -0
  7. package/dist/NamirasoftContainerRegistryServerContainerRegistry.d.ts +18 -0
  8. package/dist/NamirasoftContainerRegistryServerContainerRegistry.js +64 -0
  9. package/dist/NamirasoftContainerRegistryServerContainerRegistry.js.map +1 -0
  10. package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.d.ts +17 -0
  11. package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.js +56 -0
  12. package/dist/NamirasoftContainerRegistryServerContainerRegistryCategory.js.map +1 -0
  13. package/dist/NamirasoftContainerRegistryServerContainerRegistryField.d.ts +18 -0
  14. package/dist/NamirasoftContainerRegistryServerContainerRegistryField.js +64 -0
  15. package/dist/NamirasoftContainerRegistryServerContainerRegistryField.js.map +1 -0
  16. package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.d.ts +18 -0
  17. package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.js +64 -0
  18. package/dist/NamirasoftContainerRegistryServerContainerRegistryTag.js.map +1 -0
  19. package/dist/NamirasoftContainerRegistryServerHealthz.d.ts +7 -0
  20. package/dist/NamirasoftContainerRegistryServerHealthz.js +28 -0
  21. package/dist/NamirasoftContainerRegistryServerHealthz.js.map +1 -0
  22. package/dist/NamirasoftContainerRegistryServerMetrics.d.ts +7 -0
  23. package/dist/NamirasoftContainerRegistryServerMetrics.js +28 -0
  24. package/dist/NamirasoftContainerRegistryServerMetrics.js.map +1 -0
  25. package/dist/NamirasoftContainerRegistryServerValue.d.ts +7 -0
  26. package/dist/NamirasoftContainerRegistryServerValue.js +29 -0
  27. package/dist/NamirasoftContainerRegistryServerValue.js.map +1 -0
  28. package/dist/command/ContainerRegistryCategoryCommand.d.ts +4 -0
  29. package/dist/command/ContainerRegistryCategoryCommand.js +21 -0
  30. package/dist/command/ContainerRegistryCategoryCommand.js.map +1 -0
  31. package/dist/command/ContainerRegistryCategoryCreateCommand.d.ts +5 -0
  32. package/dist/command/ContainerRegistryCategoryCreateCommand.js +49 -0
  33. package/dist/command/ContainerRegistryCategoryCreateCommand.js.map +1 -0
  34. package/dist/command/ContainerRegistryCategoryDeleteCommand.d.ts +5 -0
  35. package/dist/command/ContainerRegistryCategoryDeleteCommand.js +38 -0
  36. package/dist/command/ContainerRegistryCategoryDeleteCommand.js.map +1 -0
  37. package/dist/command/ContainerRegistryCategoryGetCommand.d.ts +5 -0
  38. package/dist/command/ContainerRegistryCategoryGetCommand.js +38 -0
  39. package/dist/command/ContainerRegistryCategoryGetCommand.js.map +1 -0
  40. package/dist/command/ContainerRegistryCategoryListCommand.d.ts +5 -0
  41. package/dist/command/ContainerRegistryCategoryListCommand.js +38 -0
  42. package/dist/command/ContainerRegistryCategoryListCommand.js.map +1 -0
  43. package/dist/command/ContainerRegistryCommand.d.ts +4 -0
  44. package/dist/command/ContainerRegistryCommand.js +23 -0
  45. package/dist/command/ContainerRegistryCommand.js.map +1 -0
  46. package/dist/command/ContainerRegistryCreateCommand.d.ts +5 -0
  47. package/dist/command/ContainerRegistryCreateCommand.js +76 -0
  48. package/dist/command/ContainerRegistryCreateCommand.js.map +1 -0
  49. package/dist/command/ContainerRegistryDeleteCommand.d.ts +5 -0
  50. package/dist/command/ContainerRegistryDeleteCommand.js +38 -0
  51. package/dist/command/ContainerRegistryDeleteCommand.js.map +1 -0
  52. package/dist/command/ContainerRegistryFieldCommand.d.ts +4 -0
  53. package/dist/command/ContainerRegistryFieldCommand.js +23 -0
  54. package/dist/command/ContainerRegistryFieldCommand.js.map +1 -0
  55. package/dist/command/ContainerRegistryFieldCreateCommand.d.ts +5 -0
  56. package/dist/command/ContainerRegistryFieldCreateCommand.js +58 -0
  57. package/dist/command/ContainerRegistryFieldCreateCommand.js.map +1 -0
  58. package/dist/command/ContainerRegistryFieldDeleteCommand.d.ts +5 -0
  59. package/dist/command/ContainerRegistryFieldDeleteCommand.js +38 -0
  60. package/dist/command/ContainerRegistryFieldDeleteCommand.js.map +1 -0
  61. package/dist/command/ContainerRegistryFieldGetCommand.d.ts +5 -0
  62. package/dist/command/ContainerRegistryFieldGetCommand.js +38 -0
  63. package/dist/command/ContainerRegistryFieldGetCommand.js.map +1 -0
  64. package/dist/command/ContainerRegistryFieldListCommand.d.ts +5 -0
  65. package/dist/command/ContainerRegistryFieldListCommand.js +38 -0
  66. package/dist/command/ContainerRegistryFieldListCommand.js.map +1 -0
  67. package/dist/command/ContainerRegistryFieldUpdateCommand.d.ts +5 -0
  68. package/dist/command/ContainerRegistryFieldUpdateCommand.js +58 -0
  69. package/dist/command/ContainerRegistryFieldUpdateCommand.js.map +1 -0
  70. package/dist/command/ContainerRegistryGetCommand.d.ts +5 -0
  71. package/dist/command/ContainerRegistryGetCommand.js +38 -0
  72. package/dist/command/ContainerRegistryGetCommand.js.map +1 -0
  73. package/dist/command/ContainerRegistryListCommand.d.ts +5 -0
  74. package/dist/command/ContainerRegistryListCommand.js +38 -0
  75. package/dist/command/ContainerRegistryListCommand.js.map +1 -0
  76. package/dist/command/ContainerRegistryTagCommand.d.ts +4 -0
  77. package/dist/command/ContainerRegistryTagCommand.js +23 -0
  78. package/dist/command/ContainerRegistryTagCommand.js.map +1 -0
  79. package/dist/command/ContainerRegistryTagCreateCommand.d.ts +5 -0
  80. package/dist/command/ContainerRegistryTagCreateCommand.js +58 -0
  81. package/dist/command/ContainerRegistryTagCreateCommand.js.map +1 -0
  82. package/dist/command/ContainerRegistryTagDeleteCommand.d.ts +5 -0
  83. package/dist/command/ContainerRegistryTagDeleteCommand.js +38 -0
  84. package/dist/command/ContainerRegistryTagDeleteCommand.js.map +1 -0
  85. package/dist/command/ContainerRegistryTagGetCommand.d.ts +5 -0
  86. package/dist/command/ContainerRegistryTagGetCommand.js +38 -0
  87. package/dist/command/ContainerRegistryTagGetCommand.js.map +1 -0
  88. package/dist/command/ContainerRegistryTagListCommand.d.ts +5 -0
  89. package/dist/command/ContainerRegistryTagListCommand.js +38 -0
  90. package/dist/command/ContainerRegistryTagListCommand.js.map +1 -0
  91. package/dist/command/ContainerRegistryTagUpdateCommand.d.ts +5 -0
  92. package/dist/command/ContainerRegistryTagUpdateCommand.js +58 -0
  93. package/dist/command/ContainerRegistryTagUpdateCommand.js.map +1 -0
  94. package/dist/command/ContainerRegistryUpdateCommand.d.ts +5 -0
  95. package/dist/command/ContainerRegistryUpdateCommand.js +76 -0
  96. package/dist/command/ContainerRegistryUpdateCommand.js.map +1 -0
  97. package/dist/command/HealthzCommand.d.ts +4 -0
  98. package/dist/command/HealthzCommand.js +15 -0
  99. package/dist/command/HealthzCommand.js.map +1 -0
  100. package/dist/command/HealthzGetCommand.d.ts +5 -0
  101. package/dist/command/HealthzGetCommand.js +38 -0
  102. package/dist/command/HealthzGetCommand.js.map +1 -0
  103. package/dist/command/MetricsCommand.d.ts +4 -0
  104. package/dist/command/MetricsCommand.js +15 -0
  105. package/dist/command/MetricsCommand.js.map +1 -0
  106. package/dist/command/MetricsGetCommand.d.ts +5 -0
  107. package/dist/command/MetricsGetCommand.js +38 -0
  108. package/dist/command/MetricsGetCommand.js.map +1 -0
  109. package/dist/command/ValueCommand.d.ts +4 -0
  110. package/dist/command/ValueCommand.js +15 -0
  111. package/dist/command/ValueCommand.js.map +1 -0
  112. package/dist/command/ValueListCommand.d.ts +5 -0
  113. package/dist/command/ValueListCommand.js +38 -0
  114. package/dist/command/ValueListCommand.js.map +1 -0
  115. package/dist/command/cli.d.ts +2 -0
  116. package/dist/command/cli.js +26 -0
  117. package/dist/command/cli.js.map +1 -0
  118. package/dist/enum/ContainerRegistryType.d.ts +13 -0
  119. package/dist/enum/ContainerRegistryType.js +18 -0
  120. package/dist/enum/ContainerRegistryType.js.map +1 -0
  121. package/dist/index.d.ts +49 -0
  122. package/dist/index.js +66 -0
  123. package/dist/index.js.map +1 -0
  124. package/dist/meta/ContainerRegistryMetaTable.d.ts +18 -0
  125. package/dist/meta/ContainerRegistryMetaTable.js +41 -0
  126. package/dist/meta/ContainerRegistryMetaTable.js.map +1 -0
  127. package/dist/meta/NamirasoftContainerRegistryMetaDatabase.d.ts +13 -0
  128. package/dist/meta/NamirasoftContainerRegistryMetaDatabase.js +27 -0
  129. package/dist/meta/NamirasoftContainerRegistryMetaDatabase.js.map +1 -0
  130. package/dist/row/ContainerRegistryCategoryRow.d.ts +8 -0
  131. package/dist/row/ContainerRegistryCategoryRow.js +3 -0
  132. package/dist/row/ContainerRegistryCategoryRow.js.map +1 -0
  133. package/dist/row/ContainerRegistryFieldRow.d.ts +9 -0
  134. package/dist/row/ContainerRegistryFieldRow.js +3 -0
  135. package/dist/row/ContainerRegistryFieldRow.js.map +1 -0
  136. package/dist/row/ContainerRegistryInputRow.d.ts +7 -0
  137. package/dist/row/ContainerRegistryInputRow.js +3 -0
  138. package/dist/row/ContainerRegistryInputRow.js.map +1 -0
  139. package/dist/row/ContainerRegistryRow.d.ts +12 -0
  140. package/dist/row/ContainerRegistryRow.js +3 -0
  141. package/dist/row/ContainerRegistryRow.js.map +1 -0
  142. package/dist/row/ContainerRegistryTagRow.d.ts +9 -0
  143. package/dist/row/ContainerRegistryTagRow.js +3 -0
  144. package/dist/row/ContainerRegistryTagRow.js.map +1 -0
  145. package/dist/row/EntityCategoryInputRow.d.ts +3 -0
  146. package/dist/row/EntityCategoryInputRow.js +3 -0
  147. package/dist/row/EntityCategoryInputRow.js.map +1 -0
  148. package/dist/row/EntityFieldInputRow.d.ts +4 -0
  149. package/dist/row/EntityFieldInputRow.js +3 -0
  150. package/dist/row/EntityFieldInputRow.js.map +1 -0
  151. package/dist/row/EntityTagInputRow.d.ts +4 -0
  152. package/dist/row/EntityTagInputRow.js +3 -0
  153. package/dist/row/EntityTagInputRow.js.map +1 -0
  154. package/logo.png +0 -0
  155. package/package.json +28 -0
  156. package/src/NamirasoftContainerRegistryServer.ts +51 -0
  157. package/src/NamirasoftContainerRegistryServerBase.ts +30 -0
  158. package/src/NamirasoftContainerRegistryServerContainerRegistry.ts +71 -0
  159. package/src/NamirasoftContainerRegistryServerContainerRegistryCategory.ts +64 -0
  160. package/src/NamirasoftContainerRegistryServerContainerRegistryField.ts +71 -0
  161. package/src/NamirasoftContainerRegistryServerContainerRegistryTag.ts +71 -0
  162. package/src/NamirasoftContainerRegistryServerHealthz.ts +37 -0
  163. package/src/NamirasoftContainerRegistryServerMetrics.ts +37 -0
  164. package/src/NamirasoftContainerRegistryServerValue.ts +38 -0
  165. package/src/command/ContainerRegistryCategoryCommand.ts +38 -0
  166. package/src/command/ContainerRegistryCategoryCreateCommand.ts +56 -0
  167. package/src/command/ContainerRegistryCategoryDeleteCommand.ts +45 -0
  168. package/src/command/ContainerRegistryCategoryGetCommand.ts +45 -0
  169. package/src/command/ContainerRegistryCategoryListCommand.ts +45 -0
  170. package/src/command/ContainerRegistryCommand.ts +40 -0
  171. package/src/command/ContainerRegistryCreateCommand.ts +83 -0
  172. package/src/command/ContainerRegistryDeleteCommand.ts +45 -0
  173. package/src/command/ContainerRegistryFieldCommand.ts +40 -0
  174. package/src/command/ContainerRegistryFieldCreateCommand.ts +65 -0
  175. package/src/command/ContainerRegistryFieldDeleteCommand.ts +45 -0
  176. package/src/command/ContainerRegistryFieldGetCommand.ts +45 -0
  177. package/src/command/ContainerRegistryFieldListCommand.ts +45 -0
  178. package/src/command/ContainerRegistryFieldUpdateCommand.ts +65 -0
  179. package/src/command/ContainerRegistryGetCommand.ts +45 -0
  180. package/src/command/ContainerRegistryListCommand.ts +45 -0
  181. package/src/command/ContainerRegistryTagCommand.ts +40 -0
  182. package/src/command/ContainerRegistryTagCreateCommand.ts +65 -0
  183. package/src/command/ContainerRegistryTagDeleteCommand.ts +45 -0
  184. package/src/command/ContainerRegistryTagGetCommand.ts +45 -0
  185. package/src/command/ContainerRegistryTagListCommand.ts +45 -0
  186. package/src/command/ContainerRegistryTagUpdateCommand.ts +65 -0
  187. package/src/command/ContainerRegistryUpdateCommand.ts +83 -0
  188. package/src/command/HealthzCommand.ts +32 -0
  189. package/src/command/HealthzGetCommand.ts +45 -0
  190. package/src/command/MetricsCommand.ts +32 -0
  191. package/src/command/MetricsGetCommand.ts +45 -0
  192. package/src/command/ValueCommand.ts +32 -0
  193. package/src/command/ValueListCommand.ts +45 -0
  194. package/src/command/cli.ts +45 -0
  195. package/src/enum/ContainerRegistryType.ts +34 -0
  196. package/src/index.ts +69 -0
  197. package/src/meta/ContainerRegistryMetaTable.ts +64 -0
  198. package/src/meta/NamirasoftContainerRegistryMetaDatabase.ts +51 -0
  199. package/src/row/ContainerRegistryCategoryRow.ts +29 -0
  200. package/src/row/ContainerRegistryFieldRow.ts +30 -0
  201. package/src/row/ContainerRegistryInputRow.ts +29 -0
  202. package/src/row/ContainerRegistryRow.ts +34 -0
  203. package/src/row/ContainerRegistryTagRow.ts +30 -0
  204. package/src/row/EntityCategoryInputRow.ts +24 -0
  205. package/src/row/EntityFieldInputRow.ts +25 -0
  206. package/src/row/EntityTagInputRow.ts +25 -0
  207. package/tsconfig.json +42 -0
@@ -0,0 +1,45 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class HealthzGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-container-registry-server-url");
41
+ let server = new NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.healthz.Get();
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,32 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { MetricsGetCommand } from "./MetricsGetCommand";
23
+
24
+ export class MetricsCommand extends BaseNavigatorCommand
25
+ {
26
+ constructor(argv: string[])
27
+ {
28
+ super(argv, {
29
+ "get": MetricsGetCommand,
30
+ });
31
+ }
32
+ };
@@ -0,0 +1,45 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class MetricsGetCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, [], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-container-registry-server-url");
41
+ let server = new NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.metrics.Get();
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,32 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseNavigatorCommand } from "namirasoft-node-cli";
22
+ import { ValueListCommand } from "./ValueListCommand";
23
+
24
+ export class ValueCommand extends BaseNavigatorCommand
25
+ {
26
+ constructor(argv: string[])
27
+ {
28
+ super(argv, {
29
+ "list": ValueListCommand,
30
+ });
31
+ }
32
+ };
@@ -0,0 +1,45 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseFinalCommand } from "namirasoft-node-cli";
22
+ import { IStorageMemoryDedicated } from "namirasoft-core";
23
+ import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
24
+ import { TokenManager } from "namirasoft-account";
25
+
26
+ export class ValueListCommand extends BaseFinalCommand
27
+ {
28
+ constructor(argv: string[])
29
+ {
30
+ super(argv, ["table", "column", "search", "field_id", "limit"], []);
31
+ }
32
+ override async exec()
33
+ {
34
+ let token = this.app.storage.getNSAToken();
35
+ if (token == null)
36
+ throw new Error("Token is not available. Please login first using:\nns-container-registry account config \nor \nns-container-registry account login.");
37
+ let storage = new IStorageMemoryDedicated();
38
+ let manager = new TokenManager(storage, () => { });
39
+ manager.setValue(token, false);
40
+ let url = this.app.storage.getItem("ns-container-registry-server-url");
41
+ let server = new NamirasoftContainerRegistryServer(url, manager, e => this.app.logger.error(e.message));
42
+ let ans = await server.value.List(this.arg_values[0], this.arg_values[1], this.arg_values[2], this.arg_values[3], this.arg_values[4]);
43
+ this.app.logger.success(JSON.stringify(ans));
44
+ }
45
+ };
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env node
2
+ /****************************************************************/
3
+ /* */
4
+ /* This is an Auto-Generated File */
5
+ /* Made By */
6
+ /* Namirasoft SDK Generator NPM Package */
7
+ /* */
8
+ /****************************************************************/
9
+ /****************************************************************/
10
+ /* */
11
+ /* Please do not make any change to this file */
12
+ /* If any change is required, ns-sdkg command must be used */
13
+ /* */
14
+ /****************************************************************/
15
+ /****************************************************************/
16
+ /* */
17
+ /* Namira Software Corporation */
18
+ /* https://namirasoft.com */
19
+ /* */
20
+ /****************************************************************/
21
+
22
+ import { AccountCommand } from "namirasoft-account";
23
+ import { Application, BaseStorage } from "namirasoft-node-cli";
24
+ import { ConfigCommand } from "namirasoft-node-cli";
25
+ import { ContainerRegistryCategoryCommand } from "./ContainerRegistryCategoryCommand";
26
+ import { ContainerRegistryCommand } from "./ContainerRegistryCommand";
27
+ import { ContainerRegistryFieldCommand } from "./ContainerRegistryFieldCommand";
28
+ import { ContainerRegistryTagCommand } from "./ContainerRegistryTagCommand";
29
+ import { HealthzCommand } from "./HealthzCommand";
30
+ import { MetricsCommand } from "./MetricsCommand";
31
+ import { ValueCommand } from "./ValueCommand";
32
+
33
+ let app = new Application("ns-container-registry", new BaseStorage(),
34
+ {
35
+ "healthz": HealthzCommand,
36
+ "metrics": MetricsCommand,
37
+ "value": ValueCommand,
38
+ "containerregistrycategory": ContainerRegistryCategoryCommand,
39
+ "containerregistryfield": ContainerRegistryFieldCommand,
40
+ "containerregistrytag": ContainerRegistryTagCommand,
41
+ "containerregistry": ContainerRegistryCommand,
42
+ "account": AccountCommand,
43
+ "config": (argv: string[]) => new ConfigCommand(argv, ["ns-container-registry-server-url"])
44
+ });
45
+ app.run();
@@ -0,0 +1,34 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export enum ContainerRegistryType
22
+ {
23
+ PublicRepository = "PublicRepository",
24
+ AWSECR = "AWSECR",
25
+ AzureACR = "AzureACR",
26
+ GoogleContainerRegistry = "GoogleContainerRegistry",
27
+ GoogleArtifactRegistry = "GoogleArtifactRegistry",
28
+ SonatypeNexus = "SonatypeNexus",
29
+ JFrogArtifactory = "JFrogArtifactory",
30
+ Harbor = "Harbor",
31
+ GitHubContainerRegistry = "GitHubContainerRegistry",
32
+ GitLabContainerRegistry = "GitLabContainerRegistry",
33
+ PrivateRegistry = "PrivateRegistry",
34
+ }
package/src/index.ts ADDED
@@ -0,0 +1,69 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export * from "./NamirasoftContainerRegistryServer";
22
+ export * from "./NamirasoftContainerRegistryServerBase";
23
+ export * from "./NamirasoftContainerRegistryServerContainerRegistry";
24
+ export * from "./NamirasoftContainerRegistryServerContainerRegistryCategory";
25
+ export * from "./NamirasoftContainerRegistryServerContainerRegistryField";
26
+ export * from "./NamirasoftContainerRegistryServerContainerRegistryTag";
27
+ export * from "./NamirasoftContainerRegistryServerHealthz";
28
+ export * from "./NamirasoftContainerRegistryServerMetrics";
29
+ export * from "./NamirasoftContainerRegistryServerValue";
30
+ export * from "./command/ContainerRegistryCategoryCommand";
31
+ export * from "./command/ContainerRegistryCategoryCreateCommand";
32
+ export * from "./command/ContainerRegistryCategoryDeleteCommand";
33
+ export * from "./command/ContainerRegistryCategoryGetCommand";
34
+ export * from "./command/ContainerRegistryCategoryListCommand";
35
+ export * from "./command/ContainerRegistryCommand";
36
+ export * from "./command/ContainerRegistryCreateCommand";
37
+ export * from "./command/ContainerRegistryDeleteCommand";
38
+ export * from "./command/ContainerRegistryFieldCommand";
39
+ export * from "./command/ContainerRegistryFieldCreateCommand";
40
+ export * from "./command/ContainerRegistryFieldDeleteCommand";
41
+ export * from "./command/ContainerRegistryFieldGetCommand";
42
+ export * from "./command/ContainerRegistryFieldListCommand";
43
+ export * from "./command/ContainerRegistryFieldUpdateCommand";
44
+ export * from "./command/ContainerRegistryGetCommand";
45
+ export * from "./command/ContainerRegistryListCommand";
46
+ export * from "./command/ContainerRegistryTagCommand";
47
+ export * from "./command/ContainerRegistryTagCreateCommand";
48
+ export * from "./command/ContainerRegistryTagDeleteCommand";
49
+ export * from "./command/ContainerRegistryTagGetCommand";
50
+ export * from "./command/ContainerRegistryTagListCommand";
51
+ export * from "./command/ContainerRegistryTagUpdateCommand";
52
+ export * from "./command/ContainerRegistryUpdateCommand";
53
+ export * from "./command/HealthzCommand";
54
+ export * from "./command/HealthzGetCommand";
55
+ export * from "./command/MetricsCommand";
56
+ export * from "./command/MetricsGetCommand";
57
+ export * from "./command/ValueCommand";
58
+ export * from "./command/ValueListCommand";
59
+ export * from "./enum/ContainerRegistryType";
60
+ export * from "./meta/ContainerRegistryMetaTable";
61
+ export * from "./meta/NamirasoftContainerRegistryMetaDatabase";
62
+ export * from "./row/ContainerRegistryCategoryRow";
63
+ export * from "./row/ContainerRegistryFieldRow";
64
+ export * from "./row/ContainerRegistryInputRow";
65
+ export * from "./row/ContainerRegistryRow";
66
+ export * from "./row/ContainerRegistryTagRow";
67
+ export * from "./row/EntityCategoryInputRow";
68
+ export * from "./row/EntityFieldInputRow";
69
+ export * from "./row/EntityTagInputRow";
@@ -0,0 +1,64 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { BaseUUID, BaseMetaColumn, FilterItem, SortItem } from "namirasoft-core";
22
+ import { ContainerRegistryRow } from "../row/ContainerRegistryRow";
23
+ import { NSBaseMetaDatabase, NSBaseMetaTable } from "namirasoft-site";
24
+ import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
25
+
26
+ export class ContainerRegistryMetaTable extends NSBaseMetaTable<NamirasoftContainerRegistryServer, ContainerRegistryRow>
27
+ {
28
+ public override columns: {
29
+ id: BaseMetaColumn;
30
+ user_id: BaseMetaColumn;
31
+ workspace_id: BaseMetaColumn;
32
+ name: BaseMetaColumn;
33
+ type: BaseMetaColumn;
34
+ meta: BaseMetaColumn;
35
+ description: BaseMetaColumn;
36
+ created_at: BaseMetaColumn;
37
+ updated_at: BaseMetaColumn;
38
+ }
39
+ constructor(database: NSBaseMetaDatabase<NamirasoftContainerRegistryServer>)
40
+ {
41
+ super(database, "container_registry", "Container Registry", new BaseUUID("sch"));
42
+ this.columns = {
43
+ id: new BaseMetaColumn(this, "id", "ID", "String", true),
44
+ user_id: new BaseMetaColumn(this, "user_id", "User ID", "String", true),
45
+ workspace_id: new BaseMetaColumn(this, "workspace_id", "Workspace ID", "String", true),
46
+ name: new BaseMetaColumn(this, "name", "Name", "String", true),
47
+ type: new BaseMetaColumn(this, "type", "Type", "Enum", true),
48
+ meta: new BaseMetaColumn(this, "meta", "Meta", "Any", false),
49
+ description: new BaseMetaColumn(this, "description", "Description", "String", false),
50
+ created_at: new BaseMetaColumn(this, "created_at", "Created At", "DateTime", true),
51
+ updated_at: new BaseMetaColumn(this, "updated_at", "Updated At", "DateTime", true),
52
+ };
53
+ this.back_end.get = async (id: string) =>
54
+ {
55
+ let server = this.database.getServer();
56
+ return await server.container_registry.Get(id);
57
+ };
58
+ this.back_end.list = async (filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]) =>
59
+ {
60
+ let server = this.database.getServer();
61
+ return await server.container_registry.List(filters, page, size, sorts);
62
+ };
63
+ }
64
+ };
@@ -0,0 +1,51 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { ContainerRegistryMetaTable } from "./ContainerRegistryMetaTable";
22
+ import { EnvService } from "namirasoft-core";
23
+ import { NSBaseMetaDatabase } from "namirasoft-site";
24
+ import { NamirasoftContainerRegistryServer } from "../NamirasoftContainerRegistryServer";
25
+ import { TokenManager } from "namirasoft-account";
26
+
27
+ export class NamirasoftContainerRegistryMetaDatabase extends NSBaseMetaDatabase<NamirasoftContainerRegistryServer>
28
+ {
29
+ private manager?: TokenManager;
30
+ private onError?: (error: Error) => void;
31
+ public override tables: {
32
+ container_registry: ContainerRegistryMetaTable,
33
+ };
34
+ constructor(manager?: TokenManager, onError?: (error: Error) => void)
35
+ {
36
+ 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" });
37
+ this.manager = manager;
38
+ this.onError = onError;
39
+ this.tables = {
40
+ container_registry: new ContainerRegistryMetaTable(this),
41
+ };
42
+ }
43
+ override getServer(): NamirasoftContainerRegistryServer
44
+ {
45
+ if (!this.manager || !this.onError)
46
+ throw new Error("Arguments of NamirasoftContainerRegistryMetaDatabase (manager, onError) are required for server operations.")
47
+ let NAME = NSBaseMetaDatabase.getServerBaseURL(this.product.name);
48
+ let BASE_URL = new EnvService(NAME, true).getString();
49
+ return new NamirasoftContainerRegistryServer(BASE_URL, this.manager, this.onError);
50
+ }
51
+ };
@@ -0,0 +1,29 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type ContainerRegistryCategoryRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ category_id: string;
27
+ created_at: Date;
28
+ updated_at: Date;
29
+ }
@@ -0,0 +1,30 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type ContainerRegistryFieldRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ field_id: string;
27
+ value: (string | null);
28
+ created_at: Date;
29
+ updated_at: Date;
30
+ }
@@ -0,0 +1,29 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { ContainerRegistryType } from "../enum/ContainerRegistryType";
22
+
23
+ export type ContainerRegistryInputRow =
24
+ {
25
+ name: string;
26
+ type: ContainerRegistryType;
27
+ meta: (any | null);
28
+ description: (string | null);
29
+ }
@@ -0,0 +1,34 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { ContainerRegistryType } from "../enum/ContainerRegistryType";
22
+
23
+ export type ContainerRegistryRow =
24
+ {
25
+ id: string;
26
+ user_id: string;
27
+ workspace_id: string;
28
+ name: string;
29
+ type: ContainerRegistryType;
30
+ meta: (any | null);
31
+ description: (string | null);
32
+ created_at: Date;
33
+ updated_at: Date;
34
+ }
@@ -0,0 +1,30 @@
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ export type ContainerRegistryTagRow =
22
+ {
23
+ id: number;
24
+ user_id: string;
25
+ entity_id: string;
26
+ name: string;
27
+ value: (string | null);
28
+ created_at: Date;
29
+ updated_at: Date;
30
+ }