@serve.zone/interfaces 1.0.51 → 1.0.52
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/deployment.d.ts +2 -0
- package/dist_ts/data/deploymentdirective.d.ts +18 -0
- package/dist_ts/data/deploymentdirective.js +2 -0
- package/dist_ts/data/docker.d.ts +4 -1
- package/dist_ts/data/index.d.ts +1 -0
- package/dist_ts/data/index.js +2 -1
- package/dist_ts/data/service.d.ts +2 -0
- package/dist_ts/requests/config.d.ts +3 -9
- package/npmextra.json +3 -0
- package/package.json +3 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/data/deployment.ts +2 -0
- package/ts/data/deploymentdirective.ts +14 -0
- package/ts/data/docker.ts +4 -1
- package/ts/data/index.ts +1 -0
- package/ts/data/service.ts +2 -0
- package/ts/requests/config.ts +3 -13
|
@@ -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.52',
|
|
7
7
|
description: 'interfaces for working with containers'
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx3QkFBd0I7SUFDOUIsT0FBTyxFQUFFLFFBQVE7SUFDakIsV0FBVyxFQUFFLHdDQUF3QztDQUN0RCxDQUFBIn0=
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IServiceRessources } from "./docker.js";
|
|
2
|
+
/**
|
|
3
|
+
* used for tellilng a cluster about a disired deployment
|
|
4
|
+
* and specifies its configuration
|
|
5
|
+
*/
|
|
6
|
+
export interface IDeploymentDirective {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
imageClaim: string;
|
|
10
|
+
ports: {
|
|
11
|
+
hostPort: number;
|
|
12
|
+
containerPort: number;
|
|
13
|
+
}[];
|
|
14
|
+
environment: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
resources?: IServiceRessources;
|
|
18
|
+
}
|
package/dist_ts/data/docker.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export interface IDockerRegistryInfo {
|
|
|
5
5
|
password: string;
|
|
6
6
|
}
|
|
7
7
|
export interface IServiceRessources {
|
|
8
|
-
|
|
8
|
+
cpuLimit?: number;
|
|
9
|
+
cpuReservation?: number;
|
|
10
|
+
memorySizeLimitMB?: number;
|
|
11
|
+
memorySizeReservationMB?: number;
|
|
9
12
|
volumeMounts?: plugins.tsclass.container.IVolumeMount[];
|
|
10
13
|
}
|
package/dist_ts/data/index.d.ts
CHANGED
package/dist_ts/data/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from './cloudlyconfig.js';
|
|
|
2
2
|
export * from './cluster.js';
|
|
3
3
|
export * from './config.js';
|
|
4
4
|
export * from './deployment.js';
|
|
5
|
+
export * from './deploymentdirective.js';
|
|
5
6
|
export * from './docker.js';
|
|
6
7
|
export * from './env.js';
|
|
7
8
|
export * from './event.js';
|
|
@@ -12,4 +13,4 @@ export * from './service.js';
|
|
|
12
13
|
export * from './status.js';
|
|
13
14
|
export * from './traffic.js';
|
|
14
15
|
export * from './version.js';
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9kYXRhL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxjQUFjLENBQUM7QUFDN0IsY0FBYyxhQUFhLENBQUM7QUFDNUIsY0FBYyxpQkFBaUIsQ0FBQztBQUNoQyxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsVUFBVSxDQUFDO0FBQ3pCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsYUFBYSxDQUFBO0FBQzNCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsYUFBYSxDQUFDO0FBQzVCLGNBQWMsY0FBYyxDQUFDO0FBQzdCLGNBQWMsY0FBYyxDQUFDIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as plugins from '../plugins.js';
|
|
2
2
|
import * as clusterInterfaces from '../data/cluster.js';
|
|
3
3
|
import * as serverInterfaces from '../data/server.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { IDeploymentDirective } from '../data/deploymentdirective.js';
|
|
5
5
|
export interface IRequest_Any_Cloudly_GetServerConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Any_Cloudly_GetServerConfig> {
|
|
6
6
|
method: 'getServerConfig';
|
|
7
7
|
request: {
|
|
@@ -20,20 +20,14 @@ export interface IRequest_Any_Cloudly_GetClusterConfig extends plugins.typedrequ
|
|
|
20
20
|
};
|
|
21
21
|
response: {
|
|
22
22
|
configData: clusterInterfaces.ICluster;
|
|
23
|
+
deploymentDirectives: IDeploymentDirective[];
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
export interface IRequest_Cloudly_Coreflow_PushClusterConfig extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushClusterConfig> {
|
|
26
27
|
method: 'pushClusterConfig';
|
|
27
28
|
request: {
|
|
28
29
|
configData: clusterInterfaces.ICluster;
|
|
29
|
-
|
|
30
|
-
response: {};
|
|
31
|
-
}
|
|
32
|
-
export interface IRequest_Cloudly_Coreflow_PushContainerUpdate extends plugins.typedrequestInterfaces.implementsTR<plugins.typedrequestInterfaces.ITypedRequest, IRequest_Cloudly_Coreflow_PushContainerUpdate> {
|
|
33
|
-
method: 'pushContainerUpdate';
|
|
34
|
-
request: {
|
|
35
|
-
configData: clusterInterfaces.ICluster;
|
|
36
|
-
specificContainerConfigToUpdate: IService;
|
|
30
|
+
deploymentDirectives: IDeploymentDirective[];
|
|
37
31
|
};
|
|
38
32
|
response: {};
|
|
39
33
|
}
|
package/npmextra.json
CHANGED
|
@@ -14,5 +14,8 @@
|
|
|
14
14
|
"npmci": {
|
|
15
15
|
"npmGlobalTools": [],
|
|
16
16
|
"npmAccessLevel": "public"
|
|
17
|
+
},
|
|
18
|
+
"tsdoc": {
|
|
19
|
+
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
|
17
20
|
}
|
|
18
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serve.zone/interfaces",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.52",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "interfaces for working with containers",
|
|
6
6
|
"main": "dist_ts/index.js",
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"author": "Lossless GmbH",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@git.zone/tsbuild": "^2.1.
|
|
11
|
+
"@git.zone/tsbuild": "^2.1.80",
|
|
12
12
|
"@git.zone/tsbundle": "^2.0.8",
|
|
13
13
|
"@git.zone/tstest": "^1.0.90",
|
|
14
14
|
"@push.rocks/tapbundle": "^5.0.23",
|
|
15
|
-
"@types/node": "^20.12.
|
|
15
|
+
"@types/node": "^20.12.12"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@api.global/typedrequest-interfaces": "^3.0.19",
|
package/ts/00_commitinfo_data.ts
CHANGED
package/ts/data/deployment.ts
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IServiceRessources } from "./docker.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* used for tellilng a cluster about a disired deployment
|
|
5
|
+
* and specifies its configuration
|
|
6
|
+
*/
|
|
7
|
+
export interface IDeploymentDirective {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
imageClaim: string;
|
|
11
|
+
ports: { hostPort: number; containerPort: number }[];
|
|
12
|
+
environment: { [key: string]: string };
|
|
13
|
+
resources?: IServiceRessources;
|
|
14
|
+
}
|
package/ts/data/docker.ts
CHANGED
|
@@ -7,6 +7,9 @@ export interface IDockerRegistryInfo {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export interface IServiceRessources {
|
|
10
|
-
|
|
10
|
+
cpuLimit?: number;
|
|
11
|
+
cpuReservation?: number;
|
|
12
|
+
memorySizeLimitMB?: number;
|
|
13
|
+
memorySizeReservationMB?: number;
|
|
11
14
|
volumeMounts?: plugins.tsclass.container.IVolumeMount[];
|
|
12
15
|
}
|
package/ts/data/index.ts
CHANGED
package/ts/data/service.ts
CHANGED
package/ts/requests/config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as plugins from '../plugins.js';
|
|
|
2
2
|
import * as clusterInterfaces from '../data/cluster.js';
|
|
3
3
|
import * as serverInterfaces from '../data/server.js';
|
|
4
4
|
import type { IService } from '../data/service.js';
|
|
5
|
+
import type { IDeploymentDirective } from '../data/deploymentdirective.js';
|
|
5
6
|
|
|
6
7
|
export interface IRequest_Any_Cloudly_GetServerConfig
|
|
7
8
|
extends plugins.typedrequestInterfaces.implementsTR<
|
|
@@ -30,6 +31,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
30
31
|
};
|
|
31
32
|
response: {
|
|
32
33
|
configData: clusterInterfaces.ICluster;
|
|
34
|
+
deploymentDirectives: IDeploymentDirective[];
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -41,19 +43,7 @@ extends plugins.typedrequestInterfaces.implementsTR<
|
|
|
41
43
|
method: 'pushClusterConfig';
|
|
42
44
|
request: {
|
|
43
45
|
configData: clusterInterfaces.ICluster;
|
|
46
|
+
deploymentDirectives: IDeploymentDirective[];
|
|
44
47
|
};
|
|
45
48
|
response: {};
|
|
46
49
|
}
|
|
47
|
-
|
|
48
|
-
export interface IRequest_Cloudly_Coreflow_PushContainerUpdate
|
|
49
|
-
extends plugins.typedrequestInterfaces.implementsTR<
|
|
50
|
-
plugins.typedrequestInterfaces.ITypedRequest,
|
|
51
|
-
IRequest_Cloudly_Coreflow_PushContainerUpdate
|
|
52
|
-
> {
|
|
53
|
-
method: 'pushContainerUpdate'
|
|
54
|
-
request: {
|
|
55
|
-
configData: clusterInterfaces.ICluster;
|
|
56
|
-
specificContainerConfigToUpdate: IService;
|
|
57
|
-
};
|
|
58
|
-
response: {}
|
|
59
|
-
}
|