mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-25 16:01:57 +00:00
d2414ad29f
Go CI fails on golangci-lint's gofmt check. Ran gofmt -w against every file the linter named plus a handful of others that drifted during the autonomous-fleet work. No semantic changes — alignment of struct field whitespace and one mis-indented import block. gofmt -l ./... is now empty; go build + go vet are clean.
21 lines
942 B
Go
21 lines
942 B
Go
package models
|
|
|
|
// ProvisioningJobState matches the CHECK constraint on provisioning_jobs.state.
|
|
// The state machine progresses pending -> creating_server -> creating_ips ->
|
|
// assigning_ips -> setting_rdns -> installing -> verifying -> completed.
|
|
// Any failure transitions to rolling_back -> failed.
|
|
type ProvisioningJobState string
|
|
|
|
const (
|
|
ProvJobPending ProvisioningJobState = "pending"
|
|
ProvJobCreatingServer ProvisioningJobState = "creating_server"
|
|
ProvJobCreatingIPs ProvisioningJobState = "creating_ips"
|
|
ProvJobAssigningIPs ProvisioningJobState = "assigning_ips"
|
|
ProvJobSettingRDNS ProvisioningJobState = "setting_rdns"
|
|
ProvJobInstalling ProvisioningJobState = "installing"
|
|
ProvJobVerifying ProvisioningJobState = "verifying"
|
|
ProvJobCompleted ProvisioningJobState = "completed"
|
|
ProvJobFailed ProvisioningJobState = "failed"
|
|
ProvJobRollingBack ProvisioningJobState = "rolling_back"
|
|
)
|