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

@@ -72,6 +72,8 @@ func (ts *localTransferService) Transfer(ctx context.Context, src interface{}, d
switch d := dest.(type) {
case transfer.ImagePusher:
return ts.push(ctx, s, d, topts)
case transfer.ImageExporter:
return ts.exportStream(ctx, d, topts)
}
case transfer.ImageImporter:
switch d := dest.(type) {