registry/reference
Sebastiaan van Stijn 0ac367fd6b
Add reference.ParseDockerRef utility function
ParseDockerRef normalizes the image reference following the docker
convention. This is added mainly for backward compatibility. The reference
returned can only be either tagged or digested. For reference contains both tag
and digest, the function returns digested reference, e.g.

    docker.io/library/busybox:latest@sha256:7cc4b5aefd1d0cadf8d97d4350462ba51c694ebca145b08d7d41b41acc8db5aa

will be returned as

    docker.io/library/busybox@sha256:7cc4b5aefd1d0cadf8d97d4350462ba51c694ebca145b08d7d41b41acc8db5aa.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2019-01-04 21:26:06 +01:00
..
helpers.go Merge pull request #2143 from dmcgowan/reference-familiar-match 2017-01-13 18:32:33 -08:00
normalize.go Add reference.ParseDockerRef utility function 2019-01-04 21:26:06 +01:00
normalize_test.go Add reference.ParseDockerRef utility function 2019-01-04 21:26:06 +01:00
reference.go reference: allow more than 1 digest algorithm separator 2017-04-24 15:14:12 -07:00
reference_test.go Update ParseNamed to require canonical form 2017-01-18 13:56:56 -08:00
regexp.go Expose DomainRegexp from reference 2017-02-07 17:43:28 -08:00
regexp_test.go Expose DomainRegexp from reference 2017-02-07 17:43:28 -08:00