Skip to content

Commit 9f1c553

Browse files
committed
Refactor NewImageSource to add a manifest type abstraction
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 #5452. Signed-off-by: Aaron Lehmann <[email protected]>
1 parent 64ffb74 commit 9f1c553

File tree

2 files changed

+503
-326
lines changed

2 files changed

+503
-326
lines changed

0 commit comments

Comments
 (0)