MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / ImagePull

Method ImagePull

src/cmd/linuxkit/spec/cache.go:23–23  ·  view source on GitHub ↗

ImagePull takes an image name and pulls it from a registry to the cache. It should be efficient and only write missing blobs, based on their content hash. If the ref already exists in the cache, it should not pull anything, unless alwaysPull is set to true.

(ref *reference.Spec, platform []imagespec.Platform, alwaysPull bool)

Source from the content-addressed store, hash-verified

21 // efficient and only write missing blobs, based on their content hash. If the ref already
22 // exists in the cache, it should not pull anything, unless alwaysPull is set to true.
23 ImagePull(ref *reference.Spec, platform []imagespec.Platform, alwaysPull bool) error
24 // ImageInCache takes an image name and checks if it exists in the cache, including checking that the given
25 // architecture is complete. Like ImagePull, it should be efficient and only write missing blobs, based on
26 // their content hash.

Callers 3

BuildMethod · 0.65
BuildMethod · 0.65
buildArchMethod · 0.65

Implementers 2

Providersrc/cmd/linuxkit/cache/provider.go
cacheMockersrc/cmd/linuxkit/pkglib/build_test.go

Calls

no outgoing calls

Tested by

no test coverage detected