import { ReqPage } from '.'; export namespace Container { export interface ContainerOperate { name: string; operation: string; newName: string; } export interface ContainerSearch extends ReqPage { filters: string; } export interface ContainerCreate { name: string; image: string; cmd: Array; publishAllPorts: boolean; exposedPorts: Array; nanoCPUs: number; memory: number; volumes: Array; autoRemove: boolean; labels: Array; labelsStr: string; env: Array; envStr: string; restartPolicy: string; } export interface Port { containerPort: number; hostPort: number; } export interface Volume { sourceDir: string; containerDir: string; mode: string; } export interface ContainerInfo { containerID: string; name: string; imageName: string; createTime: string; state: string; runTime: string; } export interface ContainerStats { cpuPercent: number; memory: number; cache: number; ioRead: number; ioWrite: number; networkRX: number; networkTX: number; shotTime: Date; } export interface ContainerLogSearch { containerID: string; mode: string; } export interface ContainerInspect { id: string; type: string; } export interface Options { option: string; } export interface ImageInfo { id: string; createdAt: Date; name: string; tags: Array; size: string; } export interface ImageBuild { from: string; name: string; dockerfile: string; tags: Array; } export interface ImagePull { repoID: number; imageName: string; } export interface ImageTag { repoID: number; sourceID: string; targetName: string; } export interface ImagePush { repoID: number; tagName: string; } export interface ImageLoad { path: string; } export interface ImageSave { tagName: string; path: string; name: string; } export interface NetworkInfo { id: string; name: string; isSystem: boolean; labels: Array; driver: string; ipamDriver: string; subnet: string; gateway: string; createdAt: string; attachable: string; expand: boolean; } export interface NetworkCreate { name: string; labels: Array; options: Array; driver: string; subnet: string; gateway: string; scope: string; } export interface VolumeInfo { name: string; labels: Array; driver: string; mountpoint: string; createdAt: string; } export interface VolumeCreate { name: string; driver: string; options: Array; labels: Array; } export interface RepoCreate { name: string; downloadUrl: string; protocol: string; username: string; password: string; auth: boolean; } export interface RepoUpdate { id: number; downloadUrl: string; protocol: string; username: string; password: string; auth: boolean; } export interface RepoInfo { id: number; createdAt: Date; name: string; downloadUrl: string; protocol: string; username: string; password: string; auth: boolean; } export interface RepoOptions { id: number; name: string; downloadUrl: string; } export interface ComposeInfo { name: string; createdAt: string; createdBy: string; containerNumber: number; configFile: string; workdir: string; path: string; containers: Array; expand: boolean; } export interface ComposeContainer { name: string; createTime: string; containerID: string; state: string; } export interface ComposeCreate { name: string; from: string; file: string; path: string; template: number; } export interface ComposeOpration { name: string; operation: string; path: string; } export interface ComposeUpdate { name: string; path: string; content: string; } export interface TemplateCreate { name: string; from: string; description: string; path: string; content: string; } export interface TemplateUpdate { id: number; from: string; description: string; path: string; content: string; } export interface TemplateInfo { id: number; createdAt: Date; name: string; from: string; description: string; path: string; content: string; } export interface BatchDelete { names: Array; } export interface DaemonJsonUpdateByFile { path: string; file: string; } export interface DockerOperate { operation: string; } export interface DaemonJsonConf { status: string; registryMirrors: Array; insecureRegistries: Array; liveRestore: boolean; cgroupDriver: string; } }