Add Resize pty support to client

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-06-01 13:53:54 -07:00
parent 00734ab04a
commit e022cf3ad0
2 changed files with 27 additions and 0 deletions

View File

@@ -96,3 +96,17 @@ func (p *process) CloseStdin(ctx context.Context) error {
})
return err
}
func (p *process) IO() *IO {
return p.io
}
func (p *process) Resize(ctx context.Context, w, h uint32) error {
_, err := p.task.client.TaskService().Pty(ctx, &execution.PtyRequest{
ContainerID: p.task.containerID,
Width: w,
Height: h,
Pid: p.pid,
})
return err
}