From 148bc6ca6f69dd18a2688d97de2b9eebb4d711d9 Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Wed, 30 Nov 2016 21:10:23 -0500 Subject: [PATCH] Add ImageLayoutVersion const 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 --- specs-go/v1/layout.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specs-go/v1/layout.go b/specs-go/v1/layout.go index c44486bfb..b3a9fb134 100644 --- a/specs-go/v1/layout.go +++ b/specs-go/v1/layout.go @@ -16,6 +16,9 @@ package v1 import "regexp" +// ImageLayoutVersion is the version of ImageLayout +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 {