exechelper

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL