1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 13:04:13 +08:00

93 lines
2.0 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;
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;
codeDir: string;
port: number;
2023-03-29 14:58:28 +08:00
}
export interface RuntimeReq extends ReqPage {
name?: string;
status?: string;
type?: string;
}
export interface NodeReq {
codeDir: string;
}
export interface NodeScripts {
name: string;
script: 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;
source?: string;
path?: string;
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;
2023-04-02 16:54:00 +08:00
image: string;
params: Object;
2023-04-02 16:54:00 +08:00
type: string;
resource: string;
appID?: number;
2023-04-02 16:54:00 +08:00
version?: string;
rebuild?: boolean;
source?: string;
codeDir?: string;
port?: number;
2023-04-02 16:54:00 +08:00
}
export interface RuntimeUpdate {
name: string;
appDetailID: number;
image: string;
params: object;
type: string;
resource: string;
appID?: number;
version?: string;
rebuild?: boolean;
}
2023-03-31 14:02:28 +08:00
export interface RuntimeDelete {
id: number;
forceDelete: boolean;
2023-03-31 14:02:28 +08:00
}
export interface RuntimeOperate {
ID: number;
operate: string;
}
export interface NodeModule {
name: string;
version: string;
description: string;
}
export interface NodeModuleReq {
ID: number;
Operate?: string;
Module?: string;
PkgManager?: string;
}
2023-03-29 14:58:28 +08:00
}