Documentation ¶
Index ¶
- Variables
- func GetProcCmdline(pid uint) ([]string, error)
- func RemoteReadDir(dirname string) ([]os.FileInfo, error)
- func RemoteStat(filename string) (os.FileInfo, error)
- func SetRemoteExecutor()
- func WaitZombieLoop(ctx context.Context)
- type Cmd
- type Command
- func NewCommand(name string, args ...string) *Command
- func NewCommandContext(ctx context.Context, name string, args ...string) *Command
- func NewRemoteCommandAsFarAsPossible(name string, args ...string) *Command
- func NewRemoteCommandContextAsFarAsPossible(ctx context.Context, name string, args ...string) *Command
- func (c *Command) GetExitStatus(err error) (int, bool)
- func (c *Command) Kill() error
- func (c *Command) Output() ([]byte, error)
- func (c *Command) Run() error
- func (c *Command) Start() error
- func (c *Command) StderrPipe() (io.ReadCloser, error)
- func (c *Command) StdinPipe() (io.WriteCloser, error)
- func (c *Command) StdoutPipe() (io.ReadCloser, error)
- func (c *Command) String() string
- func (c *Command) Wait() error
- type Executor
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Timeout = 3 * time.Second
)
Functions ¶
func GetProcCmdline ¶
func SetRemoteExecutor ¶
func SetRemoteExecutor()
func WaitZombieLoop ¶
Types ¶
type Cmd ¶
type Cmd interface { StdinPipe() (io.WriteCloser, error) StdoutPipe() (io.ReadCloser, error) StderrPipe() (io.ReadCloser, error) CombinedOutput() ([]byte, error) Start() error Wait() error Run() error Kill() error }
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommandContext ¶
func NewRemoteCommandAsFarAsPossible ¶
exec remote command as far as possible
func (*Command) StderrPipe ¶
func (c *Command) StderrPipe() (io.ReadCloser, error)
func (*Command) StdoutPipe ¶
func (c *Command) StdoutPipe() (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.