Closed jjbustamante closed 1 year ago
@jjbustamante added a few nits... I had some questions in my previous set of comments that would be good to answer, but overall I'm feeling really good about this PR :)
Hi @jabrown85
If you can take a look and provide some feedback will be awesome! I already went to some of the comments Natalie left me.
Summary
This pull request implements the CNB Image interface using OCI layout format.
A new
layout
package was added to expose the implementation of theImage
interfaceThe implementation exposes the following classes:
Where
Image
interface and handle the complexity of saving on Disk in OCI layout format.Image
interface that mimics the behavior of a image without actually saving any layer on disk.Output
When the
image.Save()
method is called it will save the output in the local filesystem at the path provided during initialization in OCI layout format, for example:The previous image shows a couple of examples of two images save in OCI layout format on disk
Before
It was not possible to save images in OCI layout format
After
New package
layout
is exposed with the new implementation.Notes
image.Rebase()
image.SaveFile()
Fixes #162
Signed-off-by: Juan Bustamante jbustamante@vmware.com