Skip to content

Commit 365fa41

Browse files
authored
Merge pull request #1160 from sudo-bmitch/pr-subject-dag-association
Clarify that subject references a separate DAG
2 parents 9703222 + d0f90e6 commit 365fa41

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

image-index.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
9393
- **`subject`** *[descriptor](descriptor.md)*
9494

9595
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
96-
This value, used by the [`referrers` API][referrers-api], indicates a relationship to the specified manifest.
96+
This value defines a weak association to a separate [Merkle Directed Acyclic Graph (DAG)][dag] structure, and is used by the [`referrers` API][referrers-api] to include this manifest in the list of responses for the subject digest.
9797

9898
- **`annotations`** *string-string map*
9999

@@ -179,9 +179,10 @@ When the variant of the CPU is not listed in the table, values are implementatio
179179
}
180180
```
181181

182+
[dag]: https://en.wikipedia.org/wiki/Merkle_tree
182183
[go-environment2]: https://golang.org/doc/install/source#environment
183-
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml
184-
[matrix]: media-types.md#compatibility-matrix
185-
[referrers-api]: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers
186-
[rfc6838]: https://tools.ietf.org/html/rfc6838
187-
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2
184+
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml
185+
[matrix]: media-types.md#compatibility-matrix
186+
[referrers-api]: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers
187+
[rfc6838]: https://tools.ietf.org/html/rfc6838
188+
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2

manifest.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Unlike the [image index](image-index.md), which contains information about a set
9494
- **`subject`** *[descriptor](descriptor.md)*
9595

9696
This OPTIONAL property specifies a [descriptor](descriptor.md) of another manifest.
97-
This value, used by the [`referrers` API](https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers), indicates a relationship to the specified manifest.
97+
This value defines a weak association to a separate [Merkle Directed Acyclic Graph (DAG)][dag] structure, and is used by the [`referrers` API][referrers-api] to include this manifest in the list of responses for the subject digest.
9898

9999
- **`annotations`** *string-string map*
100100

@@ -257,6 +257,8 @@ The decision tree below and the associated examples MAY be used to design new ar
257257

258258
_Implementers note:_ artifacts have historically been created without an `artifactType` field, and tooling to work with artifacts should fallback to the `config.mediaType` value.
259259

260-
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml
261-
[rfc6838]: https://tools.ietf.org/html/rfc6838
262-
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2
260+
[dag]: https://en.wikipedia.org/wiki/Merkle_tree
261+
[iana]: https://www.iana.org/assignments/media-types/media-types.xhtml
262+
[referrers-api]: https://github.com/opencontainers/distribution-spec/blob/main/spec.md#listing-referrers
263+
[rfc6838]: https://tools.ietf.org/html/rfc6838
264+
[rfc6838-s4.2]: https://tools.ietf.org/html/rfc6838#section-4.2

0 commit comments

Comments
 (0)