NewSource return an ImageSource for a specific ref and architecture in the given cache directory.
(ref *reference.Spec, platform *imagespec.Platform, descriptor *v1.Descriptor)
| 45 | // NewSource return an ImageSource for a specific ref and architecture in the given |
| 46 | // cache directory. |
| 47 | func (p *Provider) NewSource(ref *reference.Spec, platform *imagespec.Platform, descriptor *v1.Descriptor) lktspec.ImageSource { |
| 48 | return ImageSource{ |
| 49 | ref: ref, |
| 50 | provider: p, |
| 51 | platform: platform, |
| 52 | descriptor: descriptor, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // Config return the imagespec.ImageConfig for the given source. Resolves to the |
| 57 | // architecture, if necessary. |
no outgoing calls
no test coverage detected