mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
957ef9cc73
This maybe a nice extra but it adds complication to the usecase. The contract is listen on the socket and you get an fd to the pty master and that is that. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
18 lines
279 B
Go
18 lines
279 B
Go
package libcontainer
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
// Console represents a pseudo TTY.
|
|
type Console interface {
|
|
io.ReadWriteCloser
|
|
|
|
// Path returns the filesystem path to the slave side of the pty.
|
|
Path() string
|
|
|
|
// Fd returns the fd for the master of the pty.
|
|
File() *os.File
|
|
}
|