Rename `version` to `ociVersion` according to runtime.md

According to definition of [state](runtime.md#State), we should rename
`version` field in `state.go` to `ociVersion`

Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
This commit is contained in:
Zhang Wei 2016-11-28 11:35:16 +08:00
parent 9ce258d034
commit c8f5a56909
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ 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"`
Version string `json:"ociVersion"`
// ID is the container ID
ID string `json:"id"`
// Status is the runtime state of the container.