registry/docs/storage/cache
Tibor Vass b72f1fd2e3 Add a new reference package abstracting repositories, tags and digests
There seems to be a need for a type that represents a way of pointing
to an image, irrespective of the implementation.

This patch defines a Reference interface and provides 3 implementations:
- TagReference: when only a tag is provided
- DigestReference: when a digest (according to the digest package) is
  provided, can include optional tag as well

Validation of references are purely syntactic.

There is also a strong type for tags, analogous to digests, as well
as a strong type for Repository from which clients can access the
hostname alone, or the repository name without the hostname, or both
together via the String() method.

For Repository, the files names.go and names_test.go were moved from
the v2 package.

Signed-off-by: Tibor Vass <tibor@docker.com>
2015-10-09 16:05:34 -07:00
..
cachecheck Avoid importing "testing" in externally-facing code 2015-09-29 10:06:39 -07:00
memory Add a new reference package abstracting repositories, tags and digests 2015-10-09 16:05:34 -07:00
redis Add a new reference package abstracting repositories, tags and digests 2015-10-09 16:05:34 -07:00
cache.go Use "Size" field to describe blobs over "Length" 2015-07-17 17:07:11 -07:00
cachedblobdescriptorstore.go Manifest and layer soft deletion. 2015-07-24 09:57:20 -07:00