console.go 271 B

12345678910111213141516
  1. package libcontainer
  2. import "io"
  3. // Console represents a pseudo TTY.
  4. type Console interface {
  5. io.ReadWriter
  6. io.Closer
  7. // Path returns the filesystem path to the slave side of the pty.
  8. Path() string
  9. // Fd returns the fd for the master of the pty.
  10. Fd() uintptr
  11. }