Skip to content

Commit

Permalink
Add State status constants to spec-go
Browse files Browse the repository at this point in the history
Signed-off-by: Renaud Gaubert <[email protected]>
  • Loading branch information
Renaud Gaubert committed Jul 8, 2020
1 parent 8e2f17c commit 89419f0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions specs-go/state.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
package specs

const (
// StateCreating indicates that the container is being created
StateCreating = "creating"

// StateCreated indicates that the runtime has finished the create operation
StateCreated = "created"

// StateRunning indicates that the container process has executed the
// user-specified program but has not exited
StateRunning = "running"

// StateStopped indicates that the container process has exited
StateStopped = "stopped"
)

// State holds information about the runtime state of the container.
type State struct {
// Version is the version of the specification that is supported.
Expand Down

0 comments on commit 89419f0

Please sign in to comment.