open-nomad/client/allocrunnerv2/state/state.go

20 lines
494 B
Go
Raw Normal View History

2018-06-22 00:35:07 +00:00
package state
import (
"github.com/hashicorp/nomad/nomad/structs"
)
2018-07-19 00:06:44 +00:00
// XXX Why its own package?
2018-06-22 00:35:07 +00:00
// State captures the state of the allocation runner.
type State struct {
2018-07-19 00:06:44 +00:00
// ClientStatus captures the overall state of the allocation
ClientStatus string
2018-06-22 00:35:07 +00:00
2018-07-19 00:06:44 +00:00
// ClientDescription is an optional human readable description of the
2018-06-22 00:35:07 +00:00
// allocations client state
2018-07-19 00:06:44 +00:00
ClientDescription string
2018-06-22 00:35:07 +00:00
// DeploymentStatus captures the status of the deployment
DeploymentStatus *structs.AllocDeploymentStatus
}