16 lines
669 B
Go
16 lines
669 B
Go
package model
|
|
|
|
type OperationState string
|
|
|
|
const (
|
|
OperationStateCreated OperationState = "created" // record exists, not started
|
|
OperationStateProcessing OperationState = "processing" // we are working on it
|
|
OperationStatePlanned OperationState = "planned" // waiting for execution
|
|
OperationStateWaiting OperationState = "waiting" // waiting external world
|
|
|
|
OperationStateSuccess OperationState = "success" // final success
|
|
OperationStateFailed OperationState = "failed" // final failure
|
|
OperationStateCancelled OperationState = "cancelled" // final cancelled
|
|
OperationStateSkipped OperationState = "skipped" // final skipped
|
|
)
|