2015-02-10 06:07:18 +08:00
|
|
|
package libcontainer
|
|
|
|
|
2016-09-03 01:31:54 +08:00
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
"os"
|
|
|
|
)
|
2015-02-10 06:07:18 +08:00
|
|
|
|
2015-02-13 02:38:43 +08:00
|
|
|
// Console represents a pseudo TTY.
|
2015-02-10 06:07:18 +08:00
|
|
|
type Console interface {
|
2016-11-30 20:53:37 +08:00
|
|
|
io.ReadWriteCloser
|
2015-02-10 06:07:18 +08:00
|
|
|
|
|
|
|
// Path returns the filesystem path to the slave side of the pty.
|
|
|
|
Path() string
|
|
|
|
|
|
|
|
// Fd returns the fd for the master of the pty.
|
2016-09-03 01:31:54 +08:00
|
|
|
File() *os.File
|
2015-02-10 06:07:18 +08:00
|
|
|
}
|