package
1.0.0
Repository: https://github.com/novln/docker-parser.git
Documentation: pkg.go.dev

# Functions

NewDigest returns a Digest from alg and a hash.Hash object.
NewDigestFromBytes returns a new digest from the byte contents of p.
ParseDigest parses s and returns the validated digest object.

# Constants

Canonical is the primary digest algorithm used with the distribution project.
sha256 with hex encoding.
sha384 with hex encoding.
sha512 with hex encoding.

# Variables

DigestRegexp matches valid digest types.
DigestRegexpAnchored matches valid digest types, anchored to the start and end of the match.
ErrDigestInvalidFormat returned when digest format invalid.
ErrDigestInvalidLength returned when digest has invalid length.
ErrDigestUnsupported returned when the digest algorithm is unsupported.

# Interfaces

Digester calculates the digest of written data.

# Type aliases

Algorithm identifies and implementation of a digester by an identifier.
Digest allows simple protection of hex formatted digest strings, prefixed by their algorithm.