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

124 lines
2.7 KiB
Go
Raw Normal View History

export namespace Container {
export interface ContainerOperate {
containerID: string;
operation: string;
newName: string;
}
export interface ContainerInfo {
containerID: string;
name: string;
imageName: string;
createTime: string;
state: string;
runTime: string;
}
export interface ContainerLogSearch {
containerID: string;
mode: string;
}
2022-10-09 16:17:15 +08:00
export interface ImageInfo {
id: string;
createdAt: Date;
name: string;
2022-10-11 17:46:52 +08:00
tags: Array<string>;
size: string;
}
2022-10-11 14:20:51 +08:00
export interface ImageBuild {
from: string;
dockerfile: string;
}
export interface ImagePull {
repoID: number;
imageName: string;
}
2022-10-11 17:46:52 +08:00
export interface ImageTag {
repoID: number;
sourceID: string;
targetName: string;
}
export interface ImagePush {
repoID: number;
tagName: string;
}
export interface ImageLoad {
path: string;
}
export interface ImageSave {
2022-10-11 17:46:52 +08:00
tagName: string;
path: string;
name: string;
}
2022-10-11 14:20:51 +08:00
export interface NetworkInfo {
id: string;
name: string;
labels: Array<string>;
driver: string;
ipamDriver: string;
2022-10-11 17:46:52 +08:00
subnet: string;
gateway: string;
2022-10-11 14:20:51 +08:00
createdAt: string;
attachable: string;
}
export interface NetworkCreate {
name: string;
labels: Array<string>;
options: Array<string>;
driver: string;
2022-10-11 17:46:52 +08:00
subnet: string;
gateway: string;
2022-10-11 14:20:51 +08:00
scope: string;
}
export interface VolumeInfo {
name: string;
labels: Array<string>;
driver: string;
mountpoint: string;
createdAt: string;
}
export interface VolumeCreate {
name: string;
driver: string;
options: Array<string>;
2022-10-11 17:46:52 +08:00
labels: Array<string>;
2022-10-11 14:20:51 +08:00
}
2022-10-09 16:17:15 +08:00
export interface RepoCreate {
name: string;
downloadUrl: string;
protocol: string;
2022-10-09 16:17:15 +08:00
username: string;
password: string;
auth: boolean;
}
export interface RepoUpdate {
id: number;
downloadUrl: string;
protocol: string;
2022-10-09 16:17:15 +08:00
username: string;
password: string;
auth: boolean;
}
export interface RepoInfo {
id: number;
createdAt: Date;
name: string;
downloadUrl: string;
protocol: string;
2022-10-09 16:17:15 +08:00
username: string;
password: string;
auth: boolean;
}
export interface RepoOptions {
id: number;
name: string;
downloadUrl: string;
}
2022-10-11 14:20:51 +08:00
export interface BatchDelete {
ids: Array<string>;
}
}