Documentation
¶
Index ¶
- func SetWinsize(fd int, rows, cols uint16) error
- func StartPtyProcess(shell string, args, env []string, dir string, uid, gid int, groups []int, ...) (*os.File, *os.Process, error)
- func StartSocketpairProcess(shell string, args, env []string, dir string, uid, gid int, groups []int) (*os.File, *os.Process, error)
- type ProcessWaiter
- type Shell
- func (s *Shell) Close() error
- func (s *Shell) CloseWrite() error
- func (s *Shell) IsPty() bool
- func (s *Shell) MasterFD() int
- func (s *Shell) Read(p []byte) (int, error)
- func (s *Shell) Resize(rows, cols uint16) error
- func (s *Shell) Signal(sig int) error
- func (s *Shell) Wait() (uint32, error)
- func (s *Shell) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetWinsize ¶
func StartPtyProcess ¶
Types ¶
type ProcessWaiter ¶
type ProcessWaiter struct {
// contains filtered or unexported fields
}
func NewProcessWaiter ¶
func NewProcessWaiter(process *os.Process) *ProcessWaiter
func (*ProcessWaiter) Exited ¶
func (pw *ProcessWaiter) Exited() bool
func (*ProcessWaiter) Pid ¶
func (pw *ProcessWaiter) Pid() int
func (*ProcessWaiter) Signal ¶
func (pw *ProcessWaiter) Signal(sig int) error
func (*ProcessWaiter) Wait ¶
func (pw *ProcessWaiter) Wait() (uint32, error)
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
func OpenPtyShell ¶
func OpenSocketpairShell ¶
func (*Shell) CloseWrite ¶
Click to show internal directories.
Click to hide internal directories.