mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-12 09:46:25 +08:00
7bf06d53dd
The standard is on the JSON schema (not yet IETF spec JSON-schema), such that it is not implemenations specific. Thus far, the reference has been in how golang source renders the JSON documents. Having the JSON source and the markdown documents in sync has been an ongoing step to keep in sync. Separating these two allows the golang source to continue being _a_ reference, but the JSON schema in the documentation to be _the_ reference. As validation tooling is refined, then it will facilitate ensuring the available golang source conforms to the reference JSON. Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
14 lines
441 B
Go
14 lines
441 B
Go
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.
|
|
Version string `json:"version"`
|
|
// ID is the container ID
|
|
ID string `json:"id"`
|
|
// Pid is the process id for the container's main process.
|
|
Pid int `json:"pid"`
|
|
// BundlePath is the path to the container's bundle directory.
|
|
BundlePath string `json:"bundlePath"`
|
|
}
|