1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-21 17:29:17 +08:00

55 lines
1.2 KiB
Go
Raw Normal View History

2023-03-29 14:58:28 +08:00
import { CommonModel, ReqPage } from '.';
2023-04-02 16:54:00 +08:00
import { App } from './app';
2023-03-29 14:58:28 +08:00
export namespace Runtime {
export interface Runtime extends CommonModel {
name: string;
2023-04-02 16:54:00 +08:00
appDetailId: number;
2023-03-29 14:58:28 +08:00
image: string;
workDir: string;
dockerCompose: string;
env: string;
params: string;
type: string;
2023-04-02 16:54:00 +08:00
resource: string;
version: string;
status: string;
2023-03-29 14:58:28 +08:00
}
export interface RuntimeReq extends ReqPage {
name?: string;
status?: string;
2023-03-29 14:58:28 +08:00
}
export interface RuntimeDTO extends Runtime {
2023-04-02 16:54:00 +08:00
appParams: App.InstallParams[];
appId: number;
2023-03-29 14:58:28 +08:00
}
export interface RuntimeCreate {
2023-04-02 16:54:00 +08:00
id?: number;
name: string;
appDetailId: number;
image: string;
params: object;
type: string;
resource: string;
appId?: number;
version?: string;
}
export interface RuntimeUpdate {
name: string;
appDetailId: number;
image: string;
params: object;
type: string;
resource: string;
appId?: number;
version?: string;
}
2023-03-31 14:02:28 +08:00
export interface RuntimeDelete {
id: number;
}
2023-03-29 14:58:28 +08:00
}