Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct { // Args is a list of arguments to provide to the process. Args []string // CombinedOutputLogFile is the path to a file where the process's // stdout and stderr should be logged. CombinedOutputLogFile string // Command is the path to the process that you want to run Command string // Environment variables to use. If empty, set to current process's env. Env []string // ExpectedSuccessCodes is a list of exit codes the process will return if // it completes successfully. ExpectedSuccessCodes []int // WorkingDir is the working directory of the process. WorkingDir string }
Cmd is the configuration struct for a process.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is a process that has either run or is going to be run.
func NewProcess ¶
NewProcess creates a new process, given the configuration. It does not start the process.
func (*Process) ExitCode ¶
ExitCode returns the exit code for the process. If the process has not yet run or exited, the result will be 0.
func (*Process) Process ¶
Process returns the Process field of underlying exec command This allows us to interact with it, i.e. for sending signals
Click to show internal directories.
Click to hide internal directories.