Merge pull request #643 from stevvooe/clarify-digest-description

reference: clarify digest description
This commit is contained in:
Derek McGowan 2017-03-20 17:09:36 -07:00 committed by GitHub
commit f251d2b487

View file

@ -31,9 +31,11 @@ var (
// to map to a physical resource, but it must parse as a hostname. We refer to // to map to a physical resource, but it must parse as a hostname. We refer to
// this as the namespace. // this as the namespace.
// //
// The other component is the digest, which may be a part of the object // The other component made accessible by helper method is the digest. This is
// identifier, always prefixed with an '@'. If present, the remote may use the // part of the object identifier, always prefixed with an '@'. If present, the
// digest portion directly or resolve it against a prefix. If the object // remote may use the digest portion directly or resolve it against a prefix.
// If the object does not include the `@` symbol, the return value for `Digest`
// will be empty.
type Spec struct { type Spec struct {
// Locator is the host and path portion of the specification. The host // Locator is the host and path portion of the specification. The host
// portion may refer to an actual host or just a namespace of related // portion may refer to an actual host or just a namespace of related