state.go 641 B

123456789101112131415161718
  1. package specs
  2. // State holds information about the runtime state of the container.
  3. type State struct {
  4. // Version is the version of the specification that is supported.
  5. Version string `json:"ociVersion"`
  6. // ID is the container ID
  7. ID string `json:"id"`
  8. // Status is the runtime status of the container.
  9. Status string `json:"status"`
  10. // Pid is the process ID for the container process.
  11. Pid int `json:"pid,omitempty"`
  12. // Bundle is the path to the container's bundle directory.
  13. Bundle string `json:"bundle"`
  14. // Annotations are key values associated with the container.
  15. Annotations map[string]string `json:"annotations,omitempty"`
  16. }