# Interfaces
AllocRunner is the interface for an allocation runner.
AllocStatsReporter gives acess to the latest resource usage from the allocation.
DriverStats is the interface implemented by DriverHandles to return task stats.
RunnerDestroyHooks are executed after AllocRunner.Run has exited and must make a best effort cleanup allocation resources.
RunnnerHook is a lifecycle hook into the life cycle of an allocation runner.
RunnerPostrunHooks are executed after calling TaskRunner.Run, even for terminal allocations.
RunnerPreKillHooks are executed inside of KillTasks before iterating and killing each task.
RunnerPrerunHooks are executed before calling TaskRunner.Run for non-terminal allocations.
RunnerUpdateHooks are executed when an allocation update is received from the server.
ShutdownHook may be implemented by AllocRunner or TaskRunner hooks and will be called when the agent process is being shutdown gracefully.
TaskHook is a lifecycle hook into the life cycle of a task runner.
TaskStateHandler exposes a handler to be called when a task's state changes.