12 lines
289 B
Go
12 lines
289 B
Go
|
package interfaces
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
// ScriptExecutor is an interface that supports Exec()ing commands in the
|
||
|
// driver's context. Split out of DriverHandle to ease testing.
|
||
|
type ScriptExecutor interface {
|
||
|
Exec(timeout time.Duration, cmd string, args []string) ([]byte, int, error)
|
||
|
}
|