Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process handles process controls
func (*Process) Interrupt ¶
func (p *Process) Interrupt()
Interrupt sends keyboard interrupt to the process and wait until it stops
func (*Process) Pipes ¶
func (p *Process) Pipes() (io.WriteCloser, io.ReadCloser, io.ReadCloser, error)
Pipes returns stdin / stdout / stderr pipes
type StderrReadCloser ¶
type StderrReadCloser struct {
// contains filtered or unexported fields
}
StderrReadCloser handles process's Stdout
this reader also exports its outputs to stdout
func NewStderr ¶
func NewStderr(r io.ReadCloser) *StderrReadCloser
NewStderr make stdin read and closer
type StdinWriteCloser ¶
type StdinWriteCloser struct {
// contains filtered or unexported fields
}
StdinWriteCloser wraps io.WriteCloser
start method starts synchronizing process's stdin with stdin
func NewStdin ¶
func NewStdin(w io.WriteCloser) *StdinWriteCloser
NewStdin make stdin write and closer
type StdoutReadCloser ¶
type StdoutReadCloser struct {
// contains filtered or unexported fields
}
StdoutReadCloser handles process's Stdout
this reader also exports its outputs to stdout
func NewStdout ¶
func NewStdout(r io.ReadCloser) *StdoutReadCloser
NewStdout make stdin read and closer
Click to show internal directories.
Click to hide internal directories.