Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExecInvalidTimeoutMsg is the error message that occurs when a timeout value is invalid ExecInvalidTimeoutMsg = `invalid timeout value "%s", it should be in the form "[123h][123m][123s]"` // ExecTimeoutMsg is the error message that occurs when a timeout is reached during commands execution ExecTimeoutMsg = `commands timed out after %s` )
Variables ¶
This section is empty.
Functions ¶
func ExecuteWithTimeout ¶ added in v0.2.11
ExecuteWithTimeout executes child processes and waits for the results. If the timeout is reached an error is returned and the child process is killed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.