MCPcopy
hub / github.com/containerd/containerd / FetchByDigest

Method FetchByDigest

core/remotes/resolver.go:76–76  ·  view source on GitHub ↗

FetchByDigest fetches the resource identified by the digest. FetcherByDigest usually returns an incomplete descriptor. Typically, the media type is always set to "application/octet-stream", and the annotations are unset.

(ctx context.Context, dgst digest.Digest, opts ...FetchByDigestOpts)

Source from the content-addressed store, hash-verified

74 // Typically, the media type is always set to "application/octet-stream",
75 // and the annotations are unset.
76 FetchByDigest(ctx context.Context, dgst digest.Digest, opts ...FetchByDigestOpts) (io.ReadCloser, ocispec.Descriptor, error)
77}
78
79type ReferrersFetcher interface {

Callers 2

testFetchFunction · 0.65
content.goFile · 0.65

Implementers 1

dockerFetchercore/remotes/docker/fetcher.go

Calls

no outgoing calls

Tested by 1

testFetchFunction · 0.52