@serve.zone/interfaces 1.0.64 → 1.0.66

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.64',
6
+ version: '1.0.66',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -7,7 +7,7 @@ export interface ISecretBundle {
7
7
  * determines if the secret is a service or an external secret
8
8
  * if external secret additional checks are put in place to protect the secret
9
9
  */
10
- type: 'service' | 'external';
10
+ type: 'service' | 'npmci' | 'gitzone' | 'external';
11
11
  /**
12
12
  * You can add specific secret groups using this
13
13
  */
@@ -17,7 +17,14 @@ export interface ISecretBundle {
17
17
  */
18
18
  includedTags: {
19
19
  key: string;
20
- value: string;
20
+ value?: string;
21
+ }[];
22
+ /**
23
+ * add images
24
+ */
25
+ includedImages: {
26
+ imageId: string;
27
+ permissions: ('read' | 'write')[];
21
28
  }[];
22
29
  /**
23
30
  * authrozations select a specific environment of a config bundle
@@ -2,11 +2,12 @@ import type { IServiceRessources } from "./docker.js";
2
2
  export interface IService {
3
3
  name: string;
4
4
  imageId: string;
5
- scaleFactor: number;
6
- balancingStrategy: 'round-robin' | 'least-connections';
7
- secrets: {
5
+ environment: {
8
6
  [key: string]: string;
9
7
  };
8
+ secretBundleId: string;
9
+ scaleFactor: number;
10
+ balancingStrategy: 'round-robin' | 'least-connections';
10
11
  ports: {
11
12
  web: number;
12
13
  custom?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "private": false,
5
5
  "description": "interfaces for working with containers",
6
6
  "main": "dist_ts/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@serve.zone/interfaces',
6
- version: '1.0.64',
6
+ version: '1.0.66',
7
7
  description: 'interfaces for working with containers'
8
8
  }
@@ -8,7 +8,7 @@ export interface ISecretBundle {
8
8
  * determines if the secret is a service or an external secret
9
9
  * if external secret additional checks are put in place to protect the secret
10
10
  */
11
- type: 'service' | 'external';
11
+ type: 'service' | 'npmci' | 'gitzone' | 'external';
12
12
 
13
13
  /**
14
14
  * You can add specific secret groups using this
@@ -20,9 +20,17 @@ export interface ISecretBundle {
20
20
  */
21
21
  includedTags: {
22
22
  key: string;
23
- value: string;
23
+ value?: string;
24
24
  }[];
25
25
 
26
+ /**
27
+ * add images
28
+ */
29
+ includedImages: {
30
+ imageId: string;
31
+ permissions: ('read' | 'write')[];
32
+ }[];
33
+
26
34
  /**
27
35
  * authrozations select a specific environment of a config bundle
28
36
  */
@@ -3,9 +3,10 @@ import type { IServiceRessources } from "./docker.js";
3
3
  export interface IService {
4
4
  name: string;
5
5
  imageId: string;
6
+ environment: {[key: string]: string};
7
+ secretBundleId: string;
6
8
  scaleFactor: number;
7
9
  balancingStrategy: 'round-robin' | 'least-connections';
8
- secrets: { [key: string]: string };
9
10
  ports: {
10
11
  web: number;
11
12
  custom?: { [domain: string]: string };