Skip to content

Commit 68a742c

Browse files
committed
spec-go/: provide variable of the scratch config digest
to facilitate use by tools that import this reference code to identify this specific blob when working with an empty/scratch config blob Signed-off-by: Vincent Batts <[email protected]>
1 parent 419b87b commit 68a742c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

specs-go/v1/manifest.go

+14
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,17 @@ type Manifest struct {
3636
// Annotations contains arbitrary metadata for the image manifest.
3737
Annotations map[string]string `json:"annotations,omitempty"`
3838
}
39+
40+
// ScratchConfigDigestSHA256 is the digest of a blob with content of `{}` (size of 2)
41+
//
42+
// Example: here is a SCRATCH descriptor JSON document that can be used as the value of a `config` in a manifest:
43+
// ```json
44+
//
45+
// {
46+
// "mediaType": "application/vnd.oci.image.config.v1+json",
47+
// "size": 2,
48+
// "digest": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
49+
// }
50+
//
51+
// ```
52+
const ScratchConfigDigestSHA256 = "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"

0 commit comments

Comments
 (0)