streams

package
v29.8.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 483

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type In

type In struct {
	// contains filtered or unexported fields
}

In is an input stream to read user input. It implements io.ReadCloser with additional utilities, such as putting the terminal in raw mode.

func NewIn

func NewIn(in io.ReadCloser) *In

NewIn returns a new In from an io.ReadCloser. If in is an *os.File, a reference is kept to the file, and accessible through In.File.

func (*In) CheckTty

func (i *In) CheckTty(attachStdin, ttyMode bool) error

CheckTty reports an error when stdin is requested for a TTY-enabled container, but the client stdin is not itself a terminal (for example, when input is piped or redirected).

func (*In) Close

func (i *In) Close() error

Close implements the io.Closer interface.

func (*In) FD

func (i *In