open-nomad/client/allocrunnerv2/taskrunner/interfaces/lifecycle.go

12 lines
331 B
Go
Raw Normal View History

2018-07-13 20:45:57 +00:00
package interfaces
import "os"
// XXX These should probably all return an error and we should have predefined
// error types for the task not currently running
type TaskLifecycle interface {
Restart(source, reason string, failure bool)
Signal(source, reason string, s os.Signal) error
Kill(source, reason string, fail bool)
}