mirror of
https://github.com/containers/podman.git
synced 2025-08-02 17:22:30 +08:00
remote-client support for images
Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -16,7 +16,7 @@ import (
|
||||
|
||||
// findImageInRepotags takes an imageParts struct and searches images' repotags for
|
||||
// a match on name:tag
|
||||
func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, error) {
|
||||
func findImageInRepotags(search Parts, images []*Image) (*storage.Image, error) {
|
||||
var results []*storage.Image
|
||||
for _, image := range images {
|
||||
for _, name := range image.Names() {
|
||||
@ -25,12 +25,12 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if d.name == search.name && d.tag == search.tag {
|
||||
if d.name == search.name && d.Tag == search.Tag {
|
||||
results = append(results, image.image)
|
||||
continue
|
||||
}
|
||||
// account for registry:/somedir/image
|
||||
if strings.HasSuffix(d.name, search.name) && d.tag == search.tag {
|
||||
if strings.HasSuffix(d.name, search.name) && d.Tag == search.Tag {
|
||||
results = append(results, image.image)
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user