mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
f8c09b6a7d
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> |
||
---|---|---|
.. | ||
cache | ||
driver | ||
blob_test.go | ||
blobcachemetrics.go | ||
blobserver.go | ||
blobstore.go | ||
blobwriter_nonresumable.go | ||
blobwriter_resumable.go | ||
blobwriter.go | ||
catalog_test.go | ||
catalog.go | ||
doc.go | ||
filereader_test.go | ||
filereader.go | ||
filewriter_test.go | ||
filewriter.go | ||
linkedblobstore.go | ||
manifeststore_test.go | ||
manifeststore.go | ||
paths_test.go | ||
paths.go | ||
purgeuploads_test.go | ||
purgeuploads.go | ||
registry.go | ||
revisionstore.go | ||
signaturestore.go | ||
tagstore.go | ||
util.go | ||
vacuum.go | ||
walk_test.go | ||
walk.go |