feat: export images using Transfer api

Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
This commit is contained in:
Jian Zeng
2023-01-04 16:52:30 +08:00
committed by Derek McGowan
parent b9d7eae1ad
commit f6491b0049
5 changed files with 198 additions and 26 deletions

View File

@@ -69,6 +69,11 @@ type ImageGetter interface {
Get(context.Context, images.Store) (images.Image, error)
}
// ImageExporter exports images to a writer
type ImageExporter interface {
Export(ctx context.Context, is images.Store, cs content.Store) error
}
// ImageImporter imports an image into a content store
type ImageImporter interface {
Import(context.Context, content.Store) (ocispec.Descriptor, error)