File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
package specs
2
2
3
+ // ContainerState represents the state of a container.
4
+ type ContainerState string
5
+
3
6
const (
4
7
// StateCreating indicates that the container is being created
5
- StateCreating = "creating"
8
+ StateCreating ContainerState = "creating"
6
9
7
10
// StateCreated indicates that the runtime has finished the create operation
8
- StateCreated = "created"
11
+ StateCreated ContainerState = "created"
9
12
10
13
// StateRunning indicates that the container process has executed the
11
14
// user-specified program but has not exited
12
- StateRunning = "running"
15
+ StateRunning ContainerState = "running"
13
16
14
17
// StateStopped indicates that the container process has exited
15
- StateStopped = "stopped"
18
+ StateStopped ContainerState = "stopped"
16
19
)
17
20
18
21
// State holds information about the runtime state of the container.
You can’t perform that action at this time.
0 commit comments