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)
| 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). |
| 78 | func (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. |
| 86 | func (s *openshiftImageSource) HasThreadSafeGetBlob() bool { |
nothing calls this directly
no test coverage detected