Skip to content

Commit 89419f0

Browse files
author
Renaud Gaubert
committed
Add State status constants to spec-go
Signed-off-by: Renaud Gaubert <[email protected]>
1 parent 8e2f17c commit 89419f0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

specs-go/state.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
package specs
22

3+
const (
4+
// StateCreating indicates that the container is being created
5+
StateCreating = "creating"
6+
7+
// StateCreated indicates that the runtime has finished the create operation
8+
StateCreated = "created"
9+
10+
// StateRunning indicates that the container process has executed the
11+
// user-specified program but has not exited
12+
StateRunning = "running"
13+
14+
// StateStopped indicates that the container process has exited
15+
StateStopped = "stopped"
16+
)
17+
318
// State holds information about the runtime state of the container.
419
type State struct {
520
// Version is the version of the specification that is supported.

0 commit comments

Comments
 (0)