feat: complete daemon operations and recovery tooling

This commit is contained in:
2026-08-22 15:34:09 +08:00
parent a0a4a7556a
commit 1abe8df6ee
19 changed files with 1421 additions and 171 deletions
+2 -2
View File
@@ -132,8 +132,8 @@ type Engine interface {
StartContainer(context.Context, string) error
// ContainerLogs 读取指定容器的日志流。
ContainerLogs(context.Context, string) (io.ReadCloser, error)
// StopContainer 停止指定容器。
StopContainer(context.Context, string) error
// StopContainer 停止指定容器timeoutSeconds 是发送停止信号后到强制终止前的等待秒数
StopContainer(context.Context, string, int) error
// InspectContainer 检查容器并返回其运行时状态。
InspectContainer(context.Context, string) (Container, error)
// RemoveContainer 移除指定容器,force 决定是否强制移除。