Skip to content

Commit

Permalink
spec-go/: provide variable of the scratch config digest
Browse files Browse the repository at this point in the history
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 <vbatts@hashbangbash.com>
  • Loading branch information
vbatts committed Feb 13, 2023
1 parent 419b87b commit 68a742c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specs-go/v1/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ type Manifest struct {
// Annotations contains arbitrary metadata for the image manifest.
Annotations map[string]string `json:"annotations,omitempty"`
}

// ScratchConfigDigestSHA256 is the digest of a blob with content of `{}` (size of 2)
//
// Example: here is a SCRATCH descriptor JSON document that can be used as the value of a `config` in a manifest:
// ```json
//
// {
// "mediaType": "application/vnd.oci.image.config.v1+json",
// "size": 2,
// "digest": "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"
// }
//
// ```
const ScratchConfigDigestSHA256 = "sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a"

0 comments on commit 68a742c

Please sign in to comment.