@serve.zone/interfaces 1.0.70 → 1.0.72
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.
|
|
6
|
+
version: '1.0.72',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import type { IServiceRessources } from
|
|
1
|
+
import type { IServiceRessources } from './docker.js';
|
|
2
2
|
export interface IService {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
id: string;
|
|
4
|
+
data: {
|
|
5
|
+
name: string;
|
|
6
|
+
environment: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
};
|
|
9
|
+
secretBundleId: string;
|
|
10
|
+
scaleFactor: number;
|
|
11
|
+
balancingStrategy: 'round-robin' | 'least-connections';
|
|
12
|
+
ports: {
|
|
13
|
+
web: number;
|
|
14
|
+
custom?: {
|
|
15
|
+
[domain: string]: string;
|
|
16
|
+
};
|
|
15
17
|
};
|
|
18
|
+
resources?: IServiceRessources;
|
|
19
|
+
domains: string[];
|
|
20
|
+
deploymentIds: string[];
|
|
21
|
+
deploymentDirectiveIds: string[];
|
|
16
22
|
};
|
|
17
|
-
resources?: IServiceRessources;
|
|
18
|
-
domains: string[];
|
|
19
|
-
deploymentIds: string[];
|
|
20
|
-
deploymentDirectiveIds: string[];
|
|
21
23
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ICluster } from '../data/cluster.js';
|
|
2
2
|
import * as plugins from '../plugins.js';
|
|
3
|
+
/**
|
|
4
|
+
* get all clusters
|
|
5
|
+
*/
|
|
3
6
|
export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_GetAllClusters> {
|
|
4
7
|
method: 'getAllClusters';
|
|
5
8
|
request: {
|
|
@@ -19,6 +22,9 @@ export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.i
|
|
|
19
22
|
clusterConfig: ICluster;
|
|
20
23
|
};
|
|
21
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* updates a cluster
|
|
27
|
+
*/
|
|
22
28
|
export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_UpdateCluster> {
|
|
23
29
|
method: 'updateCluster';
|
|
24
30
|
request: {
|
|
@@ -29,6 +35,9 @@ export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.i
|
|
|
29
35
|
clusterConfig: ICluster;
|
|
30
36
|
};
|
|
31
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* deletes a cluster
|
|
40
|
+
*/
|
|
32
41
|
export interface IRequest_DeleteCluster extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_DeleteCluster> {
|
|
33
42
|
method: 'deleteCluster';
|
|
34
43
|
request: {
|
package/package.json
CHANGED
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/service.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import type { IServiceRessources } from
|
|
1
|
+
import type { IServiceRessources } from './docker.js';
|
|
2
2
|
|
|
3
3
|
export interface IService {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
id: string;
|
|
5
|
+
data: {
|
|
6
|
+
name: string;
|
|
7
|
+
environment: { [key: string]: string };
|
|
8
|
+
secretBundleId: string;
|
|
9
|
+
scaleFactor: number;
|
|
10
|
+
balancingStrategy: 'round-robin' | 'least-connections';
|
|
11
|
+
ports: {
|
|
12
|
+
web: number;
|
|
13
|
+
custom?: { [domain: string]: string };
|
|
14
|
+
};
|
|
15
|
+
resources?: IServiceRessources;
|
|
16
|
+
domains: string[];
|
|
17
|
+
deploymentIds: string[];
|
|
18
|
+
deploymentDirectiveIds: string[];
|
|
13
19
|
};
|
|
14
|
-
|
|
15
|
-
domains: string[];
|
|
16
|
-
deploymentIds: string[];
|
|
17
|
-
deploymentDirectiveIds: string[];
|
|
18
|
-
}
|
|
20
|
+
}
|
package/ts/requests/cluster.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { ICluster } from '../data/cluster.js';
|
|
2
2
|
import * as plugins from '../plugins.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* get all clusters
|
|
6
|
+
*/
|
|
4
7
|
export interface IRequest_GetAllClusters extends plugins.typedrequestInterfaces.implementsTR<
|
|
5
8
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
6
9
|
IRequest_GetAllClusters
|
|
@@ -28,6 +31,9 @@ export interface IRequest_CreateCluster extends plugins.typedrequestInterfaces.i
|
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
/**
|
|
35
|
+
* updates a cluster
|
|
36
|
+
*/
|
|
31
37
|
export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.implementsTR<
|
|
32
38
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
33
39
|
IRequest_UpdateCluster
|
|
@@ -42,7 +48,9 @@ export interface IRequest_UpdateCluster extends plugins.typedrequestInterfaces.i
|
|
|
42
48
|
};
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
/**
|
|
52
|
+
* deletes a cluster
|
|
53
|
+
*/
|
|
46
54
|
export interface IRequest_DeleteCluster extends plugins.typedrequestInterfaces.implementsTR<
|
|
47
55
|
plugins.typedrequestInterfaces.ITypedRequest,
|
|
48
56
|
IRequest_DeleteCluster
|