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

Method GetManifest

types/types.go:260–260  ·  view source on GitHub ↗

GetManifest returns the image's manifest along with its MIME type (which may be empty when it can't be determined but the manifest is available). It may use a remote (= slow) service. If instanceDigest is not nil, it contains a digest of the specific manifest instance to retrieve (when the primary m

(ctx context.Context, instanceDigest *digest.Digest)

Source from the content-addressed store, hash-verified

258 // callers must enforce the digest match themselves, typically by using image.UnparsedInstance to access the manifest instead
259 // of calling this directly. (Compare the generic warning applicable to all of the [ImageSource] interface.)
260 GetManifest(ctx context.Context, instanceDigest *digest.Digest) ([]byte, string, error)
261 // GetBlob returns a stream for the specified blob, and the blob’s size (or -1 if unknown).
262 // The Digest field in BlobInfo is guaranteed to be provided, Size may be -1 and MediaType may be optionally provided.
263 // May update BlobInfoCache, preferably after it knows for certain that a blob truly exists at a specific location.

Callers 10

TestWriteReadFunction · 0.95
TestGetPutManifestFunction · 0.95
GetManifestMethod · 0.65
GetManifestMethod · 0.65
ManifestMethod · 0.65
GetManifestMethod · 0.65
GetManifestMethod · 0.65

Implementers 1

ForbiddenImageSourceinternal/testing/mocks/image_source.go

Calls

no outgoing calls

Tested by 2

TestWriteReadFunction · 0.76
TestGetPutManifestFunction · 0.76