Skip to content

Commit 4afc966

Browse files
committed
Add 'ImageLayoutFile' const
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 <[email protected]>
1 parent d1c7054 commit 4afc966

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

specs-go/v1/layout.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ package v1
1717
import "regexp"
1818

1919
// ImageLayoutVersion is the version of ImageLayout
20-
const ImageLayoutVersion = "1.0.0"
20+
const (
21+
ImageLayoutFile = "oci-layout"
22+
ImageLayoutVersion = "1.0.0"
23+
)
2124

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

0 commit comments

Comments
 (0)