Skip to content

Commit

Permalink
Refactor NewImageSource to add a manifest type abstraction
Browse files Browse the repository at this point in the history
Currently, NewImageSource creates a Docker schema2 manifest and an OCI
manifest at the same time. This precludes functionality that isn't
supported by both manifest types, for example zstd compression.
Refactoring this to create only the desired manifest type solves this
and also cleans up the code by separating manifest-type-specific code
into distinct implementations of a "manifest builder".

See discussion in containers#5452.

Signed-off-by: Aaron Lehmann <[email protected]>
  • Loading branch information
aaronlehmann committed Sep 17, 2024
1 parent 64ffb74 commit 81fea1d
Show file tree
Hide file tree
Showing 2 changed files with 504 additions and 325 deletions.
Loading

0 comments on commit 81fea1d

Please sign in to comment.