MCPcopy Create free account
hub / github.com/containers/image / GetBlob

Method GetBlob

docker/tarfile/src.go:84–86  ·  view source on GitHub ↗

GetBlob returns a stream for the specified blob, and the blob’s size (or -1 if unknown). The Digest field in BlobInfo is guaranteed to be provided, Size may be -1 and MediaType may be optionally provided. May update BlobInfoCache, preferably after it knows for certain that a blob truly exists at a s

(ctx context.Context, info types.BlobInfo, cache types.BlobInfoCache)

Source from the content-addressed store, hash-verified

82// The Digest field in BlobInfo is guaranteed to be provided, Size may be -1 and MediaType may be optionally provided.
83// May update BlobInfoCache, preferably after it knows for certain that a blob truly exists at a specific location.
84func (s *Source) GetBlob(ctx context.Context, info types.BlobInfo, cache types.BlobInfoCache) (io.ReadCloser, int64, error) {
85 return s.internal.GetBlob(ctx, info, cache)
86}
87
88// GetSignatures returns the image's signatures. It may use a remote (= slow) service.
89// This source implementation does not support manifest lists, so the passed-in instanceDigest should always be nil,

Callers

nothing calls this directly

Calls 1

GetBlobMethod · 0.65

Tested by

no test coverage detected