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

Method GetManifest

openshift/openshift_src.go:78–83  ·  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

76// If instanceDigest is not nil, it contains a digest of the specific manifest instance to retrieve (when the primary manifest is a manifest list);
77// this never happens if the primary manifest is not a manifest list (e.g. if the source never returns manifest lists).
78func (s *openshiftImageSource) GetManifest(ctx context.Context, instanceDigest *digest.Digest) ([]byte, string, error) {
79 if err := s.ensureImageIsResolved(ctx); err != nil {
80 return nil, "", err
81 }
82 return s.docker.GetManifest(ctx, instanceDigest)
83}
84
85// HasThreadSafeGetBlob indicates whether GetBlob can be executed concurrently.
86func (s *openshiftImageSource) HasThreadSafeGetBlob() bool {

Callers

nothing calls this directly

Calls 2

ensureImageIsResolvedMethod · 0.95
GetManifestMethod · 0.65

Tested by

no test coverage detected