github.com/bigcommerce/nomad@v0.9.3-bc/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  }