Documentation
¶
Index ¶
- func Command(sock string, args ...string) string
- func CopyLogs(dst io.Writer, src io.Reader, tty bool) error
- func ImagePullShell(sock string, req *request.ContainerImagePull) (string, string, error)
- func RunShell(sock string, req *request.ContainerCreate) (string, error)
- type MessageResize
- type Turn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyLogs ¶ added in v3.2.5
CopyLogs 将容器日志流写入 dst。 非 TTY 容器的日志是多路复用流(每帧带 8 字节头),需用 stdcopy 解复用; 传入同一个 writer 作为 stdout/stderr 两路目标,以保持原始时序。 TTY 容器为裸流,直接拷贝即可。
func ImagePullShell ¶ added in v3.3.2
ImagePullShell 生成拉取镜像的命令,需要认证时返回配套的清理命令
Types ¶
type MessageResize ¶
type MessageResize struct {
Resize bool `json:"resize"`
Columns uint `json:"columns"`
Rows uint `json:"rows"`
}
MessageResize 终端大小调整消息
Click to show internal directories.
Click to hide internal directories.