Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExitCode ¶
GetExitCode attempts to unrap an exit code into something that gives more context into why the runner exited
Types ¶
type Runner ¶
type Runner struct {
Owner string
ID int64
BaseDir string
StdoutFile string
StderrFile string
Program string
Args []string
FinChan chan bool
Output chan string
Errors chan error
EnvVars map[string]string
}
Runner is a command executor with streaming output over channels
func (*Runner) ExecuteCommand ¶
ExecuteCommand executes the command in a sub process, streaming output over the Runner's output channels.
type SignalsForwarder ¶
SignalsForwarder passes signals between the current program and the runners sub processes
func NewSignalsForwarder ¶
NewSignalsForwarder creates a new signals forwarder for the runner
func (*SignalsForwarder) Close ¶
func (s *SignalsForwarder) Close() error
Close closes the SignalForwardering goroutine
Click to show internal directories.
Click to hide internal directories.