mirror of
https://github.com/containers/skopeo.git
synced 2025-06-28 07:37:41 +00:00
Remove a FIXME? about types.Image.Manifest.
Per the discussion in https://github.com/projectatomic/skopeo/pull/73 , types.Image.Manifest should not need to expose MIME types: ImageSource.GetManifest allows supplying MIME types; the intent is for clients who want to parse the manifests to use an ImageSource. Clients who want to use skopeo’s parsing should use types.Image, and then they don’t need to care about MIME types. In fact, types.Image needs to decide among the various manifest alternatives which one to parse (and which one to match against the provided or signed manifest digest). So, Image.Manifest will not be all that useful for parsing the contents, it is basically useful only for verifying against a digest.
This commit is contained in:
parent
b3bcf49d46
commit
206a8e3eed
@ -57,7 +57,6 @@ type Image interface {
|
||||
// May be "" if unknown.
|
||||
IntendedDockerReference() string
|
||||
// Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.
|
||||
// FIXME? This should also return a MIME type if known, to differentiate between schema versions.
|
||||
Manifest() ([]byte, error)
|
||||
// Signatures is like ImageSource.GetSignatures, but the result is cached; it is OK to call this however often you need.
|
||||
Signatures() ([][]byte, error)
|
||||
|
Loading…
Reference in New Issue
Block a user