Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonStream ¶
type CommonStream struct {
// contains filtered or unexported fields
}
CommonStream is an input stream used by the DockerCli to read user input
func (*CommonStream) FD ¶
func (s *CommonStream) FD() uintptr
FD returns the file descriptor number for this stream
func (*CommonStream) IsTerminal ¶
func (s *CommonStream) IsTerminal() bool
IsTerminal returns true if this stream is connected to a terminal
func (*CommonStream) RestoreTerminal ¶
func (s *CommonStream) RestoreTerminal()
RestoreTerminal restores normal mode to the terminal
func (*CommonStream) SetIsTerminal ¶
func (s *CommonStream) SetIsTerminal(isTerminal bool)
SetIsTerminal sets the boolean used for isTerminal
func (*CommonStream) SetRawMode ¶
func (s *CommonStream) SetRawMode()
SetRawMode sets the stream in raw mode.
type InStream ¶
type InStream struct { CommonStream // contains filtered or unexported fields }
InStream is an input stream used by the DockerCli to read user input
func NewInStream ¶
func NewInStream(in io.ReadCloser) *InStream
NewInStream returns a new InStream object from a ReadCloser
type OutStream ¶
type OutStream struct { CommonStream // contains filtered or unexported fields }
OutStream is an output stream used by the DockerCli to write normal program output.
func NewOutStream ¶
NewOutStream returns a new OutStream object from a Writer
func (*OutStream) GetTtySize ¶
GetTtySize returns the height and width in characters of the tty