Commit Graph

3 Commits

Author SHA1 Message Date
Valentin Rothberg 40befe38b2 docker/referece: add IsFullIdentifier
containers/common/libimage is in need to check whether a given input
looks like a full image ID (i.e., a 64-byte hex string).  Since
compiling regexes has a negative impact on init- and run-time, let's
expose a function to check whether a given string matches the already
compiled regex in docker/reference.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-02-24 10:25:02 +01:00
Miloslav Trmač 6ddbf03773 Update docker/reference from docker/distribution/reference
Primarily to make DomainRegexp public.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2019-05-29 00:30:55 +02:00
Miloslav Trmač ecdd233c84 Copy github.com/docker/distribution/reference to docker/reference
This replaces the copy of github.com/docker/docker/reference in the same
place, which we have just gotten rid of, and allows using this package
even in consumers which insist on an incompatible version of
docker/distribution.

The copy has been edited to drop a reference to
github.com/docker/distribution/digestset .

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-02-07 15:25:27 +01:00