Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScriptResult ¶
ScriptResult holds the result of running a script.
func RunCommand ¶
func RunCommand(command string, environ []string, clock clock.Clock, timeout time.Duration) (*ScriptResult, error)
RunCommand runs the given command with the given environment and returns the result. If timeout is non-zero, the command will be killed after that duration.
Click to show internal directories.
Click to hide internal directories.