Expand description

Digest

Parsers for digest strings according to either the [OCI image spec][image-spec] or the grammar used by [distribution/reference][ref]. These grammars differ slightly:

--- distribution/reference
+++ opencontainers/image-spec
 digest               ::= algorithm ":" encoded
 algorithm            ::= algorithm-component (algorithm-separator algorithm-component)*
-component            ::= [A-Za-z][A-Za-z0-9]*
+component            ::= [a-z0-9]+
 separator            ::= [+._-]
-encoded              ::= [0-9a-fA-F]{32,} /* At least 128 bit digest value */
+encoded              ::= [a-zA-Z0-9=_-]+
 [image-spec]: https://github.com/opencontainers/image-spec/blob/v1.0.2/descriptor.md#digests
 [ref]: https://github.com/distribution/reference/blob/v0.5.0/reference.go#L24

Modules

Structs

Enums