()
| 14 | } |
| 15 | |
| 16 | func (p *Provider) List() (map[string]string, error) { |
| 17 | ii, err := p.Index() |
| 18 | if err != nil { |
| 19 | return nil, err |
| 20 | } |
| 21 | index, err := ii.IndexManifest() |
| 22 | if err != nil { |
| 23 | return nil, err |
| 24 | } |
| 25 | names := map[string]string{} |
| 26 | for _, i := range index.Manifests { |
| 27 | if i.Annotations == nil { |
| 28 | continue |
| 29 | } |
| 30 | if name, ok := i.Annotations[imagespec.AnnotationRefName]; ok { |
| 31 | names[name] = i.Digest.String() |
| 32 | } |
| 33 | } |
| 34 | return names, nil |
| 35 | } |
no test coverage detected