Skip to content

Commit

Permalink
Add 'ImageLayoutFile' const
Browse files Browse the repository at this point in the history
The image layout MUST contain an `oci-layout` file.
Add a const to ref this, so the image tool can use
this to validate.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
  • Loading branch information
coolljt0725 committed Jan 22, 2017
1 parent d1c7054 commit 4afc966
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion specs-go/v1/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ package v1
import "regexp"

// ImageLayoutVersion is the version of ImageLayout
const ImageLayoutVersion = "1.0.0"
const (
ImageLayoutFile = "oci-layout"
ImageLayoutVersion = "1.0.0"
)

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

0 comments on commit 4afc966

Please sign in to comment.