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

Interface IndexSource

src/cmd/linuxkit/spec/image.go:29–36  ·  view source on GitHub ↗

IndexSource interface to an image. It can have its config read, and a its containers can be read via an io.ReadCloser tar stream.

Source from the content-addressed store, hash-verified

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.
29type 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}

Callers 4

PushManifestFunction · 0.65
ImageMethod · 0.65
TransformBuildArgValueFunction · 0.65
AppendIndexFunction · 0.65

Implementers 1

IndexSourcesrc/cmd/linuxkit/cache/indexsource.go

Calls

no outgoing calls

Tested by

no test coverage detected