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

Method FindDescriptor

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

FindDescriptor find the descriptor pointed to by the reference in the cache. ref is a valid reference, such as docker.io/library/alpine:3.15 or alpine@sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454 If both tag and digest are provided, will use digest exclusively. Will expand

(ref *reference.Spec)

Source from the content-addressed store, hash-verified

17 // Will expand to full names, so "alpine" becomes "docker.io/library/alpine:latest".
18 // If none is found, returns nil Descriptor and no error.
19 FindDescriptor(ref *reference.Spec) (*v1.Descriptor, error)
20 // ImagePull takes an image name and pulls it from a registry to the cache. It should be
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.

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