pty

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pty

type Pty struct {
	Socket   string
	AutoExit bool
	Timeout  time.Duration
	// contains filtered or unexported fields
}

func (*Pty) Call

func (pty *Pty) Call(args *PtyExecArgs) (int, error)

func (*Pty) Exec

func (pty *Pty) Exec(args *PtyExecArgs, reply *PtyExecReply) error

func (*Pty) NsEnter

func (pty *Pty) NsEnter(execArgs *PtyExecArgs) (int, error)

func (*Pty) NsInfo

func (pty *Pty) NsInfo(args *PtyNsInfoArgs, reply *PtyNsInfoRelpy) error

func (*Pty) Serve

func (pty *Pty) Serve() error

type PtyExecArgs

type PtyExecArgs struct {
	Args   []string
	Pty    string
	Path   string
	Dir    string
	NsType []string
	// NoFail bool
	Env []string
}

type PtyExecReply

type PtyExecReply struct {
	ExitCode int
}

type PtyNsInfoArgs

type PtyNsInfoArgs struct {
}

type PtyNsInfoRelpy

type PtyNsInfoRelpy struct {
	Pid int
	Uid int
	Gid int
}

Jump to

Keyboard shortcuts

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