Expand description
§Parsers for digest algorithms and encoded digest values
Parsers for digest strings according to either the OCI image spec
or the grammar used by distribution/reference
.
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=_-]+
Modules§
Structs§
- Digest
- A parsed digest string. Includes the algorithm and encoded digest value, along with information about whether the digest is compliant with the OCI image spec, distribution/reference, or both.
Enums§
- Compliance
- Whether a digest string is compliant with the OCI image spec, distribution/reference, or both.
- Standard
- The standard or specification that a digest string must comply with. Used in
Compliance::compliant_with
.