Documentation ¶
Index ¶
- Variables
- type Process
- func (p *Process) ExitCode() (int, error)
- func (p *Process) Exited() bool
- func (p *Process) Pid() (int, error)
- func (p *Process) Run() error
- func (p *Process) Running() bool
- func (p *Process) Signal(sig os.Signal) error
- func (p *Process) Start() error
- func (p *Process) Started() bool
- func (p *Process) Success() bool
- func (p *Process) Wait() (int, error)
- func (p *Process) WaitCh() chan struct{}
- func (p *Process) WaitOnCh(ch chan struct{}) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct { Command string Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
func (*Process) ExitCode ¶
ExitCode returns the process' exitcode or error if not started or still running.
func (*Process) Exited ¶
Exited returns true iff process was running before and is not running currently.
func (*Process) Wait ¶
Wait waits for process to complete, returns exitCode or error if process is not running.
Click to show internal directories.
Click to hide internal directories.