// findImages uses findImage to attain a list of image hashes using discovery if necessary func (f *finder) findImages(al *apps.Apps) error { return al.Walk(func(app *apps.App) error { h, err := f.findImage(app.Image, app.Asc, true) if err != nil { return err } app.ImageID = *h return nil }) }
// FetchImages uses FetchImage to attain a list of image hashes func (f *Fetcher) FetchImages(al *apps.Apps) error { return al.Walk(func(app *apps.App) error { d, err := DistFromImageString(app.Image) if err != nil { return err } h, err := f.FetchImage(d, app.Image, app.Asc) if err != nil { return err } app.ImageID = *h return nil }) }