fix typos
Signed-off-by: allencloud <allen.sun@daocloud.io> Upstream-commit: c1be45fa38e82054dcad606d71446a662524f2d5 Component: engine
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user