Skip to content

Commit

Permalink
Add ImageLayoutVersion const
Browse files Browse the repository at this point in the history
Add a ImageLayoutVersion = 1.0.0 const so implementation can
refer to rather than hard code in implementation just like
https://github.com/containers/image/blob/master/oci/layout/oci_dest.go#L173
```
if err := ioutil.WriteFile(d.ref.ociLayoutPath(), []byte(`{"imageLayoutVersion": "1.0.0"}`), 0644); err != nil {
		return err
}
```

Signed-off-by: Lei Jitang <leijitang@huawei.com>
  • Loading branch information
coolljt0725 committed Oct 25, 2016
1 parent 5be4024 commit e534193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specs-go/v1/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

package v1

const ImageLayoutVersion = "1.0.0"

// ImageLayout is the structure in the "oci-layout" file, found in the root
// of an OCI Image-layout directory.
type ImageLayout struct {
Expand Down

0 comments on commit e534193

Please sign in to comment.