IndexSource interface to an image. It can have its config read, and a its containers can be read via an io.ReadCloser tar stream.
| 27 | // IndexSource interface to an image. It can have its config read, and a its containers |
| 28 | // can be read via an io.ReadCloser tar stream. |
| 29 | type IndexSource interface { |
| 30 | // Descriptor get the v1.Descriptor of the index |
| 31 | Descriptor() *v1.Descriptor |
| 32 | // Image get image for a specific architecture |
| 33 | Image(platform imagespec.Platform) (ImageSource, error) |
| 34 | // OCITarReader get the image as an OCI tarball, also compatible with `docker load`. If name arg is not "", override name of image in tarfile from default of image. |
| 35 | OCITarReader(overrideName string) (io.ReadCloser, error) |
| 36 | } |
no outgoing calls
no test coverage detected