1
0
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:
bin liu 2023-09-28 10:44:34 +08:00
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 {