mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 03:15:42 +03:00
15 lines
315 B
Go
15 lines
315 B
Go
package interfaces
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
)
|
|
|
|
type TaskLifecycle interface {
|
|
Restart(ctx context.Context, event *structs.TaskEvent, failure bool) error
|
|
Signal(event *structs.TaskEvent, s os.Signal) error
|
|
Kill(ctx context.Context, event *structs.TaskEvent) error
|
|
}
|