nomad: adding the FSM CRUD

This commit is contained in:
Armon Dadgar
2015-08-04 14:04:33 -07:00
parent ed29b4a806
commit d2ab5bcf6c

View File

@@ -23,6 +23,7 @@ const (
JobDeregisterRequestType
EvalUpdateRequestType
EvalDeleteRequestType
AllocUpdateRequestType
)
const (
@@ -192,6 +193,17 @@ type PlanRequest struct {
WriteRequest
}
// AllocUpdateRequest is used to submit changes to allocations, either
// to cause evictions or to assign new allocaitons. Both can be done
// within a single transaction
type AllocUpdateRequest struct {
// Evict is the list of allocation IDs to evict
Evict []string
// Alloc is the list of new allocations to assign
Alloc []*Allocation
}
// GenericResponse is used to respond to a request where no
// specific response information is needed.
type GenericResponse struct {