github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/client/allocrunner/taskrunner/interfaces/handle.go (about)

     1  package interfaces
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  // ScriptExecutor is an interface that supports Exec()ing commands in the
     8  // driver's context. Split out of DriverHandle to ease testing.
     9  type ScriptExecutor interface {
    10  	Exec(timeout time.Duration, cmd string, args []string) ([]byte, int, error)
    11  }