Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAndStreamCmd ¶
func RunAndStreamCmd(cmd *exec.Cmd, logout chan []byte, procFunc StreamingFunc) error
Types ¶
type StreamingFunc ¶
type StreamingFunc func(input io.ReadCloser, streamChan chan []byte, wg *sync.WaitGroup, inputDescription string)
StreamingFunc is the function that will process the input coming off of either stdoutpipe() or stderrpipe() and write it to the stream channel. this function is expected to call wg.Done() upon finish
Click to show internal directories.
Click to hide internal directories.