Documentation ¶
Index ¶
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.
func (*HijackedIOStreamer) Stream ¶
func (h *HijackedIOStreamer) Stream(ctx context.Context) error
Stream handles setting up the IO and then begins streaming stdin/stdout to/from the hijacked connection, blocking until it is either done reading output, the user inputs the detach key sequence when in TTY mode, or when the given context is cancelled.
Click to show internal directories.
Click to hide internal directories.