@serve.zone/interfaces 1.0.20 → 1.0.24
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_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/data/cluster.d.ts +3 -7
- package/dist_ts/data/server.d.ts +3 -5
- package/dist_ts/requests/config.d.ts +1 -1
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/cluster.ts +2 -7
- package/ts/data/server.ts +3 -5
- package/ts/requests/config.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@serve.zone/interfaces',
|
|
6
|
-
version: '1.0.
|
|
6
|
+
version: '1.0.24',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import type {
|
|
1
|
+
import { type IServiceRessources } from '../data/docker.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:
|
|
25
|
+
servers: IServer[];
|
|
26
26
|
/**
|
|
27
27
|
* ACME info. This is used to get SSL certificates.
|
|
28
28
|
*/
|
|
@@ -30,10 +30,6 @@ export interface ICluster {
|
|
|
30
30
|
serverAddress: string;
|
|
31
31
|
serverSecret: string;
|
|
32
32
|
};
|
|
33
|
-
/**
|
|
34
|
-
* Where to get the images from
|
|
35
|
-
*/
|
|
36
|
-
registryInfo: IDockerRegistryInfo;
|
|
37
33
|
};
|
|
38
34
|
}
|
|
39
35
|
export interface IService {
|
package/dist_ts/data/server.d.ts
CHANGED
|
@@ -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
|
|
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:
|
|
25
|
-
dockerRegistryInfo: IDockerRegistryInfo;
|
|
23
|
+
sshKeys: ISshKey[];
|
|
26
24
|
}
|
|
27
|
-
export interface
|
|
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.
|
|
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
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/cluster.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IDockerRegistryInfo, type IServiceRessources } from '../data/docker.js';
|
|
2
|
-
import type {
|
|
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:
|
|
30
|
+
servers: IServer[];
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* ACME info. This is used to get SSL certificates.
|
|
@@ -36,11 +36,6 @@ export interface ICluster {
|
|
|
36
36
|
serverAddress: string;
|
|
37
37
|
serverSecret: string;
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Where to get the images from
|
|
42
|
-
*/
|
|
43
|
-
registryInfo: IDockerRegistryInfo;
|
|
44
39
|
};
|
|
45
40
|
}
|
|
46
41
|
|
package/ts/data/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface IServerMetrics {
|
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export interface
|
|
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:
|
|
29
|
-
|
|
30
|
-
dockerRegistryInfo: IDockerRegistryInfo;
|
|
28
|
+
sshKeys: ISshKey[];
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
export interface
|
|
31
|
+
export interface ISshKey {
|
|
34
32
|
keyName: string;
|
|
35
33
|
public: string;
|
|
36
34
|
private?: string;
|
package/ts/requests/config.ts
CHANGED