fix(core): update

This commit is contained in:
Philipp Kunz 2024-02-07 12:29:23 +01:00
parent c5835b7e20
commit a7dcb32ece
6 changed files with 57 additions and 1 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@serve.zone/interfaces',
version: '1.0.26',
version: '1.0.27',
description: 'interfaces for working with containers'
}

8
ts/data/deployment.ts Normal file
View File

@ -0,0 +1,8 @@
import * as plugins from '../plugins.js';
export interface IDeployment {
affectedServiceIds: string[];
usedImageId: string;
deploymentLog: string[];
status: 'scheduled' | 'running' | 'deployed' | 'failed';
}

10
ts/data/image.ts Normal file
View File

@ -0,0 +1,10 @@
import * as plugins from '../plugins.js';
export interface IImage {
name: string;
description: string;
versions: Array<{
version: string;
storagePath?: string;
}>;
}

View File

@ -1,6 +1,7 @@
export * from './cloudlyconfig.js';
export * from './cluster.js';
export * from './config.js';
export * from './deployment.js';
export * from './docker.js';
export * from './env.js';
export * from './event.js';

35
ts/requests/image.ts Normal file
View File

@ -0,0 +1,35 @@
import * as plugins from '../plugins.js';
export interface IRequest_PushImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_PushImage
> {
method: 'pushImage';
request: {
jwt: string;
image: string;
version: string;
transferId?: string;
chunk: Buffer;
};
response: {
transferId: string;
};
}
export interface IRequest_DownloadImage extends plugins.typedrequestInterfaces.implementsTR<
plugins.typedrequestInterfaces.ITypedRequest,
IRequest_DownloadImage
> {
method: 'downloadImage';
request: {
jwt: string;
image: string;
version: string;
transferId: string;
};
response: {
transferId: string;
chunk: Buffer;
};
}

View File

@ -4,6 +4,7 @@ import * as certificateRequests from './certificate.js';
import * as clusterRequests from './cluster.js';
import * as configRequests from './config.js';
import * as identityRequests from './identity.js';
import * as imageRequests from './image.js';
import * as informRequests from './inform.js';
import * as logRequests from './log.js';
import * as networkRequests from './network.js';
@ -18,6 +19,7 @@ export {
clusterRequests as cluster,
configRequests as config,
identityRequests as identity,
imageRequests as image,
informRequests as inform,
logRequests as log,
networkRequests as network,