feat: support file operations inside containers (#12160)

Refs #523
This commit is contained in:
ssongliu
2026-03-12 09:33:33 +00:00
committed by GitHub
parent 341a55ae63
commit 176fd0f8ad
13 changed files with 2219 additions and 6 deletions
+20
View File
@@ -56,6 +56,26 @@ export namespace Container {
name: string;
state: string;
}
export interface ContainerFileReq {
containerID: string;
path: string;
}
export interface ContainerFileInfo {
name: string;
path: string;
isDir: boolean;
isLink: boolean;
linkTo: string;
size: number;
mode: string;
modTime: string;
}
export interface ContainerFileContent {
content: string;
size: number;
truncated: boolean;
isBinary: boolean;
}
export interface ResourceLimit {
cpu: number;
memory: number;