Documentation
¶
Index ¶
- func Copy(ctx context.Context, dst net.Conn, src io.Reader, writeTimeout time.Duration) (written int64, err error)
- func MonitorTtySize(ctx context.Context, client client.ContainerAPIClient, out *stream.OutStream, ...) error
- func ResizeTtyTo(ctx context.Context, client client.ContainerAPIClient, id string, ...)
- type HijackedIOStreamer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorTtySize ¶
func MonitorTtySize(ctx context.Context, client client.ContainerAPIClient, out *stream.OutStream, id string, isExec bool) error
MonitorTtySize updates the container tty size when the terminal tty changes size
func ResizeTtyTo ¶
func ResizeTtyTo(ctx context.Context, client client.ContainerAPIClient, id string, height, width uint, isExec bool)
ResizeTtyTo re sizes tty to specific height and width
Types ¶
type HijackedIOStreamer ¶
type HijackedIOStreamer struct {
Streams stream.Streams
InputStream io.ReadCloser
OutputStream io.Writer
ErrorStream io.Writer
Resp types.HijackedResponse
TTY bool
DetachKeys string
}
HijackedIOStreamer handles copying input to and output from streams to the connection.
Click to show internal directories.
Click to hide internal directories.