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

Method fetchManifest

docker/docker_image_src.go:243–245  ·  view source on GitHub ↗

fetchManifest fetches a manifest for tagOrDigest. The caller is responsible for ensuring tagOrDigest uses the expected format.

(ctx context.Context, tagOrDigest string)

Source from the content-addressed store, hash-verified

241// fetchManifest fetches a manifest for tagOrDigest.
242// The caller is responsible for ensuring tagOrDigest uses the expected format.
243func (s *dockerImageSource) fetchManifest(ctx context.Context, tagOrDigest string) ([]byte, string, error) {
244 return s.c.fetchManifest(ctx, s.physicalRef, tagOrDigest)
245}
246
247// ensureManifestIsLoaded sets s.cachedManifest and s.cachedManifestMIMEType
248//

Callers 2

GetManifestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected