Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachConfig ¶
type AttachConfig struct { Terminal bool // CloseStdin means if the stdin of client's stream is closed by the // caller, the stdin of process's stream should be closed. CloseStdin bool // UseStdin/UseStdout/UseStderr can be used to check the client's stream // is nil or not. It is hard to check io.Write/io.ReadCloser != nil // directly, because they might be specific type, which means // (typ != nil) always is true. UseStdin, UseStdout, UseStderr bool Stdin io.ReadCloser Stdout, Stderr io.Writer }
AttachConfig is used to describe how to attach the client's stream to the process's stream.
type Pipes ¶
type Pipes struct { Stdin io.WriteCloser Stdout io.ReadCloser Stderr io.ReadCloser }
Pipes is used to present any downstream pipe, for example, containerd's cio.
type Stream ¶
type Stream interface { Stdin() io.ReadCloser StdinPipe() io.WriteCloser NewStdinInput() NewDiscardStdinInput() Stdout() io.WriteCloser AddStdoutWriter(w io.WriteCloser) AddStderrWriter(w io.WriteCloser) Stderr() io.WriteCloser NewStdoutPipe() io.ReadCloser NewStderrPipe() io.ReadCloser Attach(ctx context.Context, cfg *AttachConfig) <-chan error CopyPipes(p Pipes) Close() error // sync.WaitGroup interface Wait() }
Stream for containers IOs handling
Click to show internal directories.
Click to hide internal directories.