Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWaitPIDTimeout = fmt.Errorf("Timed out waiting for PID to complete") Unredacted = Redact(nil) )
View Source
var DefaultCmdOpts = CmdOpts{ Timeout: time.Duration(0), Redactor: Unredacted, }
Functions ¶
func RunCommandExt ¶
RunCommandExt is a convenience function to run/log a command and return/log stderr in an error upon failure.
func WaitPID ¶
func WaitPID(pid int, opts ...WaitPIDOpts) error
WaitPID waits for a non-child process id to exit
Types ¶
Click to show internal directories.
Click to hide internal directories.