2016-09-20 08:16:59 +00: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.
|
2017-04-12 23:12:04 +00:00
|
|
|
Version string `json:"ociVersion"`
|
2016-09-20 08:16:59 +00:00
|
|
|
// ID is the container ID
|
|
|
|
ID string `json:"id"`
|
2017-04-12 23:12:04 +00:00
|
|
|
// Status is the runtime status of the container.
|
2016-09-20 08:16:59 +00:00
|
|
|
Status string `json:"status"`
|
2017-04-12 23:12:04 +00:00
|
|
|
// Pid is the process ID for the container process.
|
2017-07-20 04:07:01 +00:00
|
|
|
Pid int `json:"pid,omitempty"`
|
2017-04-12 23:12:04 +00:00
|
|
|
// Bundle is the path to the container's bundle directory.
|
|
|
|
Bundle string `json:"bundle"`
|
|
|
|
// Annotations are key values associated with the container.
|
|
|
|
Annotations map[string]string `json:"annotations,omitempty"`
|
2016-09-20 08:16:59 +00:00
|
|
|
}
|