2015-10-30 22:32:56 +08:00
|
|
|
package specs
|
|
|
|
|
|
|
|
// State holds information about the runtime state of the container.
|
|
|
|
type State struct {
|
|
|
|
// Version is the version of the specification that is supported.
|
2016-11-28 11:35:16 +08:00
|
|
|
Version string `json:"ociVersion"`
|
2015-10-30 22:32:56 +08:00
|
|
|
// ID is the container ID
|
|
|
|
ID string `json:"id"`
|
2016-06-03 04:28:59 +08:00
|
|
|
// Status is the runtime state of the container.
|
|
|
|
Status string `json:"status"`
|
2016-08-03 14:49:50 +08:00
|
|
|
// Pid is the process ID for the container process.
|
2015-10-30 22:32:56 +08:00
|
|
|
Pid int `json:"pid"`
|
|
|
|
// BundlePath is the path to the container's bundle directory.
|
|
|
|
BundlePath string `json:"bundlePath"`
|
2016-06-03 04:21:18 +08:00
|
|
|
// Annotations are the annotations associated with the container.
|
2017-01-05 10:57:58 +08:00
|
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
2015-10-30 22:32:56 +08:00
|
|
|
}
|