moby--moby/registry
Derek McGowan ed13c3abfb Use notary library for trusted image fetch and signing
Add a trusted flag to force the cli to resolve a tag into a digest via the notary trust library and pull by digest.
On push the flag the trust flag will indicate the digest and size of a manifest should be signed and push to a notary server.
If a tag is given, the cli will resolve the tag into a digest and pull by digest.
After pulling, if a tag is given the cli makes a request to tag the image.

Use certificate directory for notary requests

Read certificates using same logic used by daemon for registry requests.

Catch JSON syntax errors from Notary client

When an uncaught error occurs in Notary it may show up in Docker as a JSON syntax error, causing a confusing error message to the user.
Provide a generic error when a JSON syntax error occurs.

Catch expiration errors and wrap in additional context.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
2015-07-24 14:08:20 -07:00
..
auth.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
auth_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
authchallenge.go Adds support for v2 registry login 2015-01-15 14:04:14 -08:00
config.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
config_test.go Deprecating ResolveRepositoryName 2015-01-08 20:14:58 +00:00
endpoint.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
endpoint_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
reference.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
registry.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
registry_mock_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
registry_test.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
service.go Use notary library for trusted image fetch and signing 2015-07-24 14:08:20 -07:00
session.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00
token.go Registry: remove unwanted return variable name 2015-06-09 10:58:33 +08:00
types.go Improve documentation and golint compliance of registry package 2015-07-24 11:55:07 -07:00