@serve.zone/interfaces 1.0.20 → 1.0.22

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.20',
6
+ version: '1.0.22',
7
7
  description: 'interfaces for working with containers'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
@@ -1,5 +1,5 @@
1
1
  import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js';
2
- import type { IServerConfig } from './server.js';
2
+ import type { IServer } from './server.js';
3
3
  export interface IClusterIdentifier {
4
4
  clusterName: string;
5
5
  secretKey: string;
@@ -22,7 +22,7 @@ export interface ICluster {
22
22
  /**
23
23
  * what servers are expected to be part of the cluster
24
24
  */
25
- servers: IServerConfig[];
25
+ servers: IServer[];
26
26
  /**
27
27
  * ACME info. This is used to get SSL certificates.
28
28
  */
@@ -1,4 +1,3 @@
1
- import { type IDockerRegistryInfo } from './docker.js';
2
1
  export interface IServerMetrics {
3
2
  serverId: string;
4
3
  cpuUsageInPercent: number;
@@ -12,7 +11,7 @@ export interface IServerMetrics {
12
11
  memoryUsageInMB: number;
13
12
  }>;
14
13
  }
15
- export interface IServerConfig {
14
+ export interface IServer {
16
15
  type: 'server';
17
16
  /**
18
17
  * a list of debian packages to be installed
@@ -21,10 +20,9 @@ export interface IServerConfig {
21
20
  /**
22
21
  * a list of SSH keys to deploy
23
22
  */
24
- sshKeys: IServezoneSshKey[];
25
- dockerRegistryInfo: IDockerRegistryInfo;
23
+ sshKeys: ISshKey[];
26
24
  }
27
- export interface IServezoneSshKey {
25
+ export interface ISshKey {
28
26
  keyName: string;
29
27
  public: string;
30
28
  private?: string;
@@ -7,7 +7,7 @@ export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedreque
7
7
  clusterIdentifier: clusterInterfaces.IClusterIdentifier;
8
8
  };
9
9
  response: {
10
- configData: serverInterfaces.IServerConfig;
10
+ configData: serverInterfaces.IServer;
11
11
  };
12
12
  }
13
13
  export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetClusterConfig> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serve.zone/interfaces",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
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.20',
6
+ version: '1.0.22',
7
7
  description: 'interfaces for working with containers'
8
8
  }
@@ -1,5 +1,5 @@
1
1
  import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js';
2
- import type { IServerConfig } from './server.js';
2
+ import type { IServer } from './server.js';
3
3
 
4
4
  export interface IClusterIdentifier {
5
5
  clusterName: string;
@@ -27,7 +27,7 @@ export interface ICluster {
27
27
  /**
28
28
  * what servers are expected to be part of the cluster
29
29
  */
30
- servers: IServerConfig[];
30
+ servers: IServer[];
31
31
 
32
32
  /**
33
33
  * ACME info. This is used to get SSL certificates.
package/ts/data/server.ts CHANGED
@@ -14,7 +14,7 @@ export interface IServerMetrics {
14
14
  }>;
15
15
  }
16
16
 
17
- export interface IServerConfig {
17
+ export interface IServer {
18
18
  type: 'server';
19
19
 
20
20
  /**
@@ -25,12 +25,10 @@ export interface IServerConfig {
25
25
  /**
26
26
  * a list of SSH keys to deploy
27
27
  */
28
- sshKeys: IServezoneSshKey[];
29
-
30
- dockerRegistryInfo: IDockerRegistryInfo;
28
+ sshKeys: ISshKey[];
31
29
  }
32
30
 
33
- export interface IServezoneSshKey {
31
+ export interface ISshKey {
34
32
  keyName: string;
35
33
  public: string;
36
34
  private?: string;
@@ -12,7 +12,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
12
12
  clusterIdentifier: clusterInterfaces.IClusterIdentifier;
13
13
  };
14
14
  response: {
15
- configData: serverInterfaces.IServerConfig;
15
+ configData: serverInterfaces.IServer;
16
16
  };
17
17
  }
18
18