Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitStatus ¶
ExitStatus returns the error's exit status if the error is an exec.ExitError if the error is nil it return 0 otherwise returns 1.
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command controls the command run.
func (*Command) SetHangTimeout ¶
SetHangTimeout sets the timeout after which the command is killed when no output is received on either stdout or stderr.
func (*Command) SetStandardIO ¶
SetStandardIO sets the input and outputs of the command.
func (*Command) SetTimeout ¶
SetTimeout sets the max runtime of the command.
type NoOutputTimeoutError ¶
func NewNoOutputTimeout ¶
func NewNoOutputTimeout(timeout time.Duration) NoOutputTimeoutError
func (NoOutputTimeoutError) Error ¶
func (e NoOutputTimeoutError) Error() string
type TimeoutError ¶
func NewTimeoutError ¶
func NewTimeoutError(timeout time.Duration) TimeoutError
func (TimeoutError) Error ¶
func (e TimeoutError) Error() string
Click to show internal directories.
Click to hide internal directories.