package streams
import "github.com/docker/cli/cli/streams"
Index ¶
- type In
- func NewIn(in io.ReadCloser) *In
- func (i *In) CheckTty(attachStdin, ttyMode bool) error
- func (i *In) Close() error
- func (s *In) FD() uintptr
- func (s *In) IsTerminal() bool
- func (i *In) Read(p []byte) (int, error)
- func (s *In) RestoreTerminal()
- func (s *In) SetIsTerminal(isTerminal bool)
- func (i *In) SetRawTerminal() (err error)
- type Out
Types ¶
type In ¶
type In struct {
// contains filtered or unexported fields
}
In is an input stream used by the DockerCli to read user input
func NewIn ¶
func NewIn(in io.ReadCloser) *In
NewIn returns a new In object from a ReadCloser
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) Close ¶
Close implements the Closer interface
func (*In) FD ¶
func (s *In) FD() uintptr
FD returns the file descriptor number for this stream
func (*In) IsTerminal ¶
func (s *In) IsTerminal() bool
IsTerminal returns true if this stream is connected to a terminal
func (*In) Read ¶
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 NewOut ¶
NewOut returns a new Out object from a Writer
func (*Out) FD ¶
func (s *Out) FD() uintptr
FD returns the file descriptor number for this stream
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
func (*Out) Write ¶
Source Files ¶
- Version
- v23.0.0-beta.1+incompatible
- Published
- Dec 6, 2022
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.