2018-07-19 00:06:44 +00:00
|
|
|
package interfaces
|
|
|
|
|
|
|
|
import "github.com/hashicorp/nomad/nomad/structs"
|
|
|
|
|
|
|
|
type Client interface {
|
|
|
|
AllocStateHandler
|
|
|
|
}
|
|
|
|
|
|
|
|
// AllocStateHandler exposes a handler to be called when a allocation's state changes
|
|
|
|
type AllocStateHandler interface {
|
|
|
|
// AllocStateUpdated is used to emit an updated allocation. This allocation
|
|
|
|
// is stripped to only include client settable fields.
|
2018-08-17 17:34:44 +00:00
|
|
|
AllocStateUpdated(alloc *structs.Allocation)
|
2018-07-19 00:06:44 +00:00
|
|
|
}
|