Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsole ¶
NewConsole allocates a new console and returns the File for its master and path for its slave.
Types ¶
type ConnectionSet ¶
type ConnectionSet struct {
In, Out, Err transport.Connection
}
ConnectionSet is a structure defining the readers and writers the Core implementation should forward a process's stdio through.
func (*ConnectionSet) Close ¶
func (s *ConnectionSet) Close() error
Close closes each stdio connection.
func (*ConnectionSet) Files ¶
func (s *ConnectionSet) Files() (_ *FileSet, err error)
Files returns a FileSet with an os.File for each connection in the connection set.
func (*ConnectionSet) NewPipeRelay ¶ added in v0.3.3
func (s *ConnectionSet) NewPipeRelay() (_ *PipeRelay, err error)
NewPipeRelay returns a new pipe relay wrapping the given connection stdin, stdout, stderr set.
func (*ConnectionSet) NewTtyRelay ¶
func (s *ConnectionSet) NewTtyRelay(pty *os.File) *TtyRelay
NewTtyRelay returns a new TTY relay for a given master PTY file.
type PipeRelay ¶ added in v0.3.3
type PipeRelay struct {
// contains filtered or unexported fields
}
PipeRelay is a relay built to expose a pipe interface for stdin, stdout, stderr on top of a ConnectionSet.
func (*PipeRelay) Files ¶ added in v0.3.3
Files returns a FileSet with an os.File for each connection in the connection set.
type TtyRelay ¶
type TtyRelay struct {
// contains filtered or unexported fields
}
TtyRelay relays IO between a set of stdio connections and a master PTY file.
func (*TtyRelay) ResizeConsole ¶
ResizeConsole sends the appropriate resize to a pTTY FD