Skip to content

Commit

Permalink
Merge pull request opencontainers#674 from crosbymichael/state
Browse files Browse the repository at this point in the history
Rename bundlePath to bundle
  • Loading branch information
hqhq authored Feb 6, 2017
2 parents ce0783a + 5d3f167 commit 2392e66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The value MAY be one of:

Additional values MAY be defined by the runtime, however, they MUST be used to represent new runtime states not defined above.
* **`pid`** (int, REQUIRED when `status` is `created` or `running`) is the ID of the container process, as seen by the host.
* **`bundlePath`** (string, REQUIRED) is the absolute path to the container's bundle directory.
* **`bundle`** (string, REQUIRED) is the absolute path to the container's bundle directory.
This is provided so that consumers can find the container's configuration and root filesystem on the host.
* **`annotations`** (map, OPTIONAL) contains the list of annotations associated with the container.
If no annotations were provided then this property MAY either be absent or an empty map.
Expand All @@ -37,7 +37,7 @@ When serialized in JSON, the format MUST adhere to the following pattern:
"id": "oci-container1",
"status": "running",
"pid": 4422,
"bundlePath": "/containers/redis",
"bundle": "/containers/redis",
"annotations": {
"myKey": "myValue"
}
Expand Down
6 changes: 3 additions & 3 deletions schema/state-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"type": "integer",
"minimum": 0
},
"bundlePath": {
"id": "https://opencontainers.org/schema/runtime/state/bundlePath",
"bundle": {
"id": "https://opencontainers.org/schema/runtime/state/bundle",
"type": "string"
},
"annotations": {
Expand All @@ -40,6 +40,6 @@
"id",
"status",
"pid",
"bundlePath"
"bundle"
]
}
8 changes: 4 additions & 4 deletions specs-go/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ type State struct {
Version string `json:"ociVersion"`
// ID is the container ID
ID string `json:"id"`
// Status is the runtime state of the container.
// Status is the runtime status of the container.
Status string `json:"status"`
// Pid is the process ID for the container process.
Pid int `json:"pid"`
// BundlePath is the path to the container's bundle directory.
BundlePath string `json:"bundlePath"`
// Annotations are the annotations associated with the container.
// 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"`
}

0 comments on commit 2392e66

Please sign in to comment.