Documentation ¶
Overview ¶
Package exec provides an abstraction around package os' Process implementation for easier testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitStatus ¶
ExitStatus is a process' exit status.
type Process ¶
Process describes a command process.
func FindProcess ¶
FindProcess creates a new Process from an existing process ID.
func NewSleepProcess ¶
NewSleepProcess creates a process that only idles for a duration. It is used for testing. If delay is larger than 0, then the process will sleep for that delay before exiting, unless it is SIGKILLed.
func StartProcess ¶
StartProcess creates a new command process on the system.
Click to show internal directories.
Click to hide internal directories.