tailssh

package
v1.14.0-alpha.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetWinsize

func SetWinsize(fd int, rows, cols uint16) error

func StartPtyProcess

func StartPtyProcess(shell string, args, env []string, dir string, uid, gid int, groups []int, rows, cols uint16) (*os.File, *os.Process, error)

func StartSocketpairProcess

func StartSocketpairProcess(shell string, args, env []string, dir string, uid, gid int, groups []int) (*os.File, *os.Process, error)

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 OpenPtyShell(shell string, args, env []string, dir string, uid, gid int, groups []int, rows, cols uint16) (*Shell, error)

func OpenSocketpairShell

func OpenSocketpairShell(shell string, args, env []string, dir string, uid, gid int, groups []int) (*Shell, error)

func (*Shell) Close

func (s *Shell) Close() error

func (*Shell) CloseWrite

func (s *Shell) CloseWrite() error

func (*Shell) IsPty

func (s *Shell) IsPty() bool

func (*Shell) MasterFD

func (s *Shell) MasterFD() int

func (*Shell) Read

func (s *Shell) Read(p []byte) (int, error)

func (*Shell) Resize

func (s *Shell) Resize(rows, cols uint16) error

func (*Shell) Signal

func (s *Shell) Signal(sig int) error

func (*Shell) Wait

func (s *Shell) Wait() (uint32, error)

func (*Shell) Write

func (s *Shell) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL