MCPcopy Index your code
hub / github.com/linuxkit/linuxkit / ListImages

Function ListImages

src/cmd/linuxkit/cache/image.go:8–14  ·  view source on GitHub ↗

ListImages list the named images and their root digests from a layout.Path

(dir string)

Source from the content-addressed store, hash-verified

6
7// ListImages list the named images and their root digests from a layout.Path
8func ListImages(dir string) (map[string]string, error) {
9 p, err := NewProvider(dir)
10 if err != nil {
11 return nil, err
12 }
13 return p.List()
14}
15
16func (p *Provider) List() (map[string]string, error) {
17 ii, err := p.Index()

Callers

nothing calls this directly

Calls 2

ListMethod · 0.95
NewProviderFunction · 0.85

Tested by

no test coverage detected