github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/libcontainer/console.go (about)

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