2022-10-08 18:32:02 +08:00
|
|
|
import { ReqPage } from '.';
|
|
|
|
|
|
|
|
export namespace Container {
|
|
|
|
export interface ContainerOperate {
|
|
|
|
containerID: string;
|
|
|
|
operation: string;
|
|
|
|
newName: string;
|
|
|
|
}
|
|
|
|
export interface ContainerSearch extends ReqPage {
|
|
|
|
status: 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
|
|
|
|
2022-10-10 15:14:49 +08:00
|
|
|
export interface ImageInfo {
|
|
|
|
id: string;
|
|
|
|
createdAt: Date;
|
|
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
size: string;
|
|
|
|
}
|
|
|
|
export interface ImagePull {
|
|
|
|
repoID: number;
|
|
|
|
imageName: string;
|
|
|
|
}
|
|
|
|
export interface ImagePush {
|
|
|
|
repoID: number;
|
|
|
|
imageName: string;
|
|
|
|
tagName: string;
|
|
|
|
}
|
|
|
|
export interface ImageRemove {
|
|
|
|
imageName: string;
|
|
|
|
}
|
|
|
|
export interface ImageLoad {
|
|
|
|
path: string;
|
|
|
|
}
|
|
|
|
export interface ImageSave {
|
|
|
|
imageName: string;
|
|
|
|
path: string;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2022-10-09 16:17:15 +08:00
|
|
|
export interface RepoCreate {
|
|
|
|
name: string;
|
|
|
|
downloadUrl: string;
|
2022-10-10 16:47:05 +08:00
|
|
|
protocol: string;
|
2022-10-09 16:17:15 +08:00
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
auth: boolean;
|
|
|
|
}
|
|
|
|
export interface RepoUpdate {
|
|
|
|
id: number;
|
|
|
|
downloadUrl: string;
|
2022-10-10 16:47:05 +08:00
|
|
|
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;
|
2022-10-10 16:47:05 +08:00
|
|
|
protocol: string;
|
2022-10-09 16:17:15 +08:00
|
|
|
username: string;
|
|
|
|
password: string;
|
|
|
|
auth: boolean;
|
|
|
|
}
|
2022-10-10 15:14:49 +08:00
|
|
|
export interface RepoOptions {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
downloadUrl: string;
|
|
|
|
}
|
2022-10-08 18:32:02 +08:00
|
|
|
}
|