mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
287b0a6348
commit
c1be45fa38
61 changed files with 77 additions and 77 deletions
|
@ -155,7 +155,7 @@ func IsNameOnly(ref Named) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
// ParseIDOrReference parses string for a image ID or a reference. ID can be
|
||||
// ParseIDOrReference parses string for an image ID or a reference. ID can be
|
||||
// without a default prefix.
|
||||
func ParseIDOrReference(idOrRef string) (digest.Digest, Named, error) {
|
||||
if err := v1.ValidateID(idOrRef); err == nil {
|
||||
|
|
|
@ -48,7 +48,7 @@ type store struct {
|
|||
referencesByIDCache map[image.ID]map[string]Named
|
||||
}
|
||||
|
||||
// Repository maps tags to image IDs. The key is a a stringified Reference,
|
||||
// Repository maps tags to image IDs. The key is a stringified Reference,
|
||||
// including the repository name.
|
||||
type repository map[string]image.ID
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue