Documentation ¶ Index ¶ type ExecRunner func (r ExecRunner) Run(parent context.Context, path string, args ...string) Result func (r ExecRunner) StreamLines(ctx context.Context, path string, consume func([]byte) error, args ...string) error type LineStreamer type Result type Runner Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ExecRunner ¶ type ExecRunner struct { Timeout time.Duration MaxOutput int Verbose func(string) } func (ExecRunner) Run ¶ func (r ExecRunner) Run(parent context.Context, path string, args ...string) Result func (ExecRunner) StreamLines ¶ func (r ExecRunner) StreamLines(ctx context.Context, path string, consume func([]byte) error, args ...string) error type LineStreamer ¶ type LineStreamer interface { StreamLines(context.Context, string, func([]byte) error, ...string) error } type Result ¶ type Result struct { Stdout string Stderr string ExitCode int Duration time.Duration Err error TimedOut bool Truncated bool } type Runner ¶ type Runner interface { Run(context.Context, string, ...string) Result } Source Files ¶ View all Source files runner.go Click to show internal directories. Click to hide internal directories.