mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix decode tags value error when call get /v2/<name>/tags/list in registry api v2.
Signed-off-by: Meaglith Ma <genedna@gmail.com>
This commit is contained in:
parent
bf304cc414
commit
221e9624e3
1 changed files with 3 additions and 3 deletions
|
@ -352,8 +352,8 @@ func (r *Session) PutV2ImageManifest(ep *Endpoint, imageName, tagName string, si
|
||||||
}
|
}
|
||||||
|
|
||||||
type remoteTags struct {
|
type remoteTags struct {
|
||||||
name string
|
Name string
|
||||||
tags []string
|
Tags []string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Given a repository name, returns a json array of string 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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Error while decoding the http response: %s", err)
|
return nil, fmt.Errorf("Error while decoding the http response: %s", err)
|
||||||
}
|
}
|
||||||
return remote.tags, nil
|
return remote.Tags, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue