distribution/reference
Aaron Lehmann 16eea0cc47 Usability improvements for reference package
Various improvements motivated by early real-world use in engine code
under development:

- Make `WithDigest` return `Canonical`, since the return value always
  has a name and a digest.

- Introduce a `NamedTagged` type, which can be used for strongly typing
  cases where something must have a name and a tag.

- Rename `ParseNamed` to `WithName`, and create a
  `ParseNamed` that accepts tags and digests (returning a `Named` type).
  The new `ParseNamed` makes code using the reference package much less
  verbose, since typical use cases require a name, and this is an
  additional type assertion and error case after every `Parse` call.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-10-13 16:07:34 -07:00
..
reference.go Usability improvements for reference package 2015-10-13 16:07:34 -07:00
reference_test.go Usability improvements for reference package 2015-10-13 16:07:34 -07:00
regexp.go Add WithTag and WithDigest combinator functions 2015-10-12 16:00:33 -07:00
regexp_test.go Update regexp to support repeated dash and double underscore 2015-10-09 16:14:08 -07:00