fix(core): update
This commit is contained in:
parent
c5835b7e20
commit
a7dcb32ece
@ -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
8
ts/data/deployment.ts
Normal 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
10
ts/data/image.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import * as plugins from '../plugins.js';
|
||||
|
||||
export interface IImage {
|
||||
name: string;
|
||||
description: string;
|
||||
versions: Array<{
|
||||
version: string;
|
||||
storagePath?: string;
|
||||
}>;
|
||||
}
|
@ -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
35
ts/requests/image.ts
Normal 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;
|
||||
};
|
||||
}
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user