open-nomad/client/allocrunner/taskrunner/service_hook_test.go

12 lines
383 B
Go
Raw Normal View History

package taskrunner
import (
"github.com/hashicorp/nomad/client/allocrunner/interfaces"
)
// Statically assert the stats hook implements the expected interfaces
var _ interfaces.TaskPoststartHook = (*serviceHook)(nil)
var _ interfaces.TaskExitedHook = (*serviceHook)(nil)
var _ interfaces.TaskPreKillHook = (*serviceHook)(nil)
var _ interfaces.TaskUpdateHook = (*serviceHook)(nil)