Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HijackedIOStreamer ¶
type HijackedIOStreamer struct { Streams Streams InputStream io.ReadCloser OutputStream io.Writer ErrorStream io.Writer Resp types.HijackedResponse Tty bool // contains filtered or unexported fields }
type In ¶
type In struct {
// contains filtered or unexported fields
}
In is an input Stream used by the DockerCli to read user input
func (*In) CheckTty ¶
CheckTty checks if we are trying to attach to a container Tty from a non-Tty client input Stream, and if so, returns an error.
func (*In) IsTerminal ¶
func (s *In) IsTerminal() bool
IsTerminal returns true if this Stream is connected to a terminal
func (*In) RestoreTerminal ¶
func (s *In) RestoreTerminal()
RestoreTerminal restores normal mode to the terminal
func (*In) SetIsTerminal ¶
func (s *In) SetIsTerminal(isTerminal bool)
SetIsTerminal sets the boolean used for isTerminal
func (*In) SetRawTerminal ¶
SetRawTerminal sets raw mode on the input terminal
type Out ¶
type Out struct {
// contains filtered or unexported fields
}
Out is an output Stream used by the DockerCli to write normal program output.
func (*Out) GetTtySize ¶
GetTtySize returns the height and width in characters of the Tty
func (*Out) IsTerminal ¶
func (s *Out) IsTerminal() bool
IsTerminal returns true if this Stream is connected to a terminal
func (*Out) RestoreTerminal ¶
func (s *Out) RestoreTerminal()
RestoreTerminal restores normal mode to the terminal
func (*Out) SetIsTerminal ¶
func (s *Out) SetIsTerminal(isTerminal bool)
SetIsTerminal sets the boolean used for isTerminal
func (*Out) SetRawTerminal ¶
SetRawTerminal sets raw mode on the input terminal