Add media type to export stream

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2022-10-04 15:34:45 -07:00
parent 52341a2343
commit 0762a3a759
5 changed files with 17 additions and 13 deletions

View File

@@ -54,8 +54,8 @@ type ImageImportStream struct {
forceCompress bool
}
func (iis *ImageImportStream) ImportStream(context.Context) (io.Reader, error) {
return iis.stream, nil
func (iis *ImageImportStream) ImportStream(context.Context) (io.Reader, string, error) {
return iis.stream, iis.mediaType, nil
}
func (iis *ImageImportStream) Import(ctx context.Context, store content.Store) (ocispec.Descriptor, error) {