1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #11666 from dmcgowan/fix-v2-get-all-tags

Fix v2 get all tags (carrying 11334)
This commit is contained in:
Michael Crosby 2015-03-23 16:21:58 -07:00
commit f7af5b0a84

View file

@ -352,8 +352,8 @@ func (r *Session) PutV2ImageManifest(ep *Endpoint, imageName, tagName string, si
}
type remoteTags struct {
name string
tags []string
Name string `json:"name"`
Tags []string `json:"tags"`
}
// Given a repository name, returns a json array of string tags
@ -393,5 +393,5 @@ func (r *Session) GetV2RemoteTags(ep *Endpoint, imageName string, auth *RequestA
if err != nil {
return nil, fmt.Errorf("Error while decoding the http response: %s", err)
}
return remote.tags, nil
return remote.Tags, nil
}