Documentation
¶
Index ¶
- func GetOutputs(r Runner) (io.Reader, io.Reader, error)
- type Runner
- func NewBashRunner(code string, workdir string, env []string) (Runner, error)
- func NewPerlRunner(code string, workdir string, env []string) (Runner, error)
- func NewPythonRunner(code string, workdir string, env []string) (Runner, error)
- func NewRubyRunner(code string, workdir string, env []string) (Runner, error)
- func NewShRunner(code string, workdir string, env []string) (Runner, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner interface {
// StdoutPipe returns a pipe that will be connected to the runner's
// standard output when the command starts.
StdoutPipe() (io.ReadCloser, error)
// StderrPipe returns a pipe that will be connected to the runner's
// standard error when the command starts.
StderrPipe() (io.ReadCloser, error)
// Start starts the runner but does not wait for it to complete.
Start() error
// Wait waits for the runner to exit. It must have been started by Start.
//
// The returned error is nil if the runner has no problems copying
// stdin, stdout, and stderr, and exits with a zero exit status.
Wait() error
}
Runner just runs anything.
func NewBashRunner ¶
NewBashRunner creates a Bash runner.
func NewPerlRunner ¶
NewPerlRunner creates a Perl runner.
func NewPythonRunner ¶
NewPythonRunner creates a Python runner.
func NewRubyRunner ¶
NewRubyRunner creates a Ruby runner.
Click to show internal directories.
Click to hide internal directories.