mirror of
https://github.com/containers/skopeo.git
synced 2025-09-20 09:30:15 +00:00
show tag and taglist
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
@@ -89,7 +89,9 @@ func (mf *v1ManifestFetcher) fetchWithSession(ctx context.Context, askedTag stri
|
||||
return nil, fmt.Errorf("No tags available for remote repository %s", mf.repoInfo.FullName())
|
||||
}
|
||||
|
||||
tagList := []string{}
|
||||
for tag, id := range tagsList {
|
||||
tagList = append(tagList, tag)
|
||||
repoData.ImgList[id] = ®istry.ImgData{
|
||||
ID: id,
|
||||
Tag: tag,
|
||||
@@ -143,7 +145,7 @@ func (mf *v1ManifestFetcher) fetchWithSession(ctx context.Context, askedTag stri
|
||||
return nil, fmt.Errorf("No such image %s:%s", mf.repoInfo.FullName(), askedTag)
|
||||
}
|
||||
|
||||
return makeImageInspect(mf.repoInfo, pulledImg, askedTag, ""), nil
|
||||
return makeImageInspect(mf.repoInfo, pulledImg, askedTag, tagList, ""), nil
|
||||
}
|
||||
|
||||
func (mf *v1ManifestFetcher) pullImageJSON(imgID, endpoint string, token []string) (*image.Image, error) {
|
||||
|
Reference in New Issue
Block a user