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)
| 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. |
no outgoing calls