Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExecutionimeout = errors.New("execution timeout") ErrRestNotOk = errors.New("rest return non 2XX response") )
Functions ¶
This section is empty.
Types ¶
type DockerExec ¶ added in v0.7.5
type DockerExec struct {
// contains filtered or unexported fields
}
func NewDockerExec ¶ added in v0.7.5
func NewDockerExec(image string, timeout time.Duration) *DockerExec
func (*DockerExec) Exec ¶ added in v0.7.5
func (e *DockerExec) Exec(code []byte, arg string, env interface{}) (ExecResult, error)
type ExecResult ¶
type Executor ¶
type Executor interface {
Exec(exec []byte, arg string, env interface{}) (ExecResult, error)
}
func NewExecutor ¶
NewExecutor returns executor by name and executor URL
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
MultiError encapsulates error messages from the underlying executors into one error.
func (*MultiError) Error ¶
func (e *MultiError) Error() string
Error implements error interface for MultiError by returning all error messages concatenated.
type MultiExec ¶
type MultiExec struct {
// contains filtered or unexported fields
}
MutliExec is a higher-order executor that utlizes the underlying executors to perform Exec.
func NewMultiExec ¶
NewMultiExec creates a new MultiExec instance.
Click to show internal directories.
Click to hide internal directories.