1
0
mirror of https://github.com/containers/image.git synced 2025-09-19 16:01:39 +03:00

3 Commits

Author SHA1 Message Date
Miloslav Trmač
243b49d8ab Extend private.ReusedBlob to allow zstd:chunked reuses
- Add a CompressionAnnotations field
- Allow turning a known-zstd blob into a zstd:chunked one if we
  know the right annotations

This just adds the fields, nothing sets them yet, should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-08-06 22:13:30 +02:00
Miloslav Trmač
d12d1d1b59 Return private.ReusedBlob from TryReusingBlobWithOptions
This is a subset of types.BlobInfo the transports
actually should deal with. Also tighten the semantics a bit,
to be much more explicit about what the transports are responsible for.

This allows us to stop tracking MIME types in storage.addedLayerInfo,
so simplify that.

Then fix the generic code so that blob annotations are not discarded
on blob reuse.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-03-22 22:31:26 +01:00
Miloslav Trmač
44768ed6bf Move copyOneImage, imageCopier, and exclusive callees, to copy/single.go
Only moves unchanged code (in the same order), should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-03-09 17:37:54 +01:00