mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
use manifestTagsPathSpec for listing all tags
In terms of results, a`manifestTagsPathSpec{ name: "repo" }` equals `manifestTagPathSpec{ name: "repo", tag: "" }`, but from the intention, the `manifestTagsPathSpec` should be used. Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
parent
3fc1216dc3
commit
6c724a1a95
@ -24,7 +24,7 @@ type tagStore struct {
|
||||
|
||||
// All returns all tags
|
||||
func (ts *tagStore) All(ctx context.Context) ([]string, error) {
|
||||
pathSpec, err := pathFor(manifestTagPathSpec{
|
||||
pathSpec, err := pathFor(manifestTagsPathSpec{
|
||||
name: ts.repository.Named().Name(),
|
||||
})
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user