From 71db80ddb15addb4197693bc056c35dd8ff0d6ac Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 19 Feb 2019 13:36:42 -0600 Subject: podman-remote load image enable the ability to load an image into remote storage using the remote client. Signed-off-by: baude --- libpod/adapter/runtime.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libpod/adapter/runtime.go') diff --git a/libpod/adapter/runtime.go b/libpod/adapter/runtime.go index b12f63cdc..4f5b98dbb 100644 --- a/libpod/adapter/runtime.go +++ b/libpod/adapter/runtime.go @@ -322,3 +322,14 @@ func (r *LocalRuntime) SaveImage(ctx context.Context, c *cliconfig.SaveValues) e } return newImage.Save(ctx, source, c.Format, c.Output, additionalTags, c.Quiet, c.Compress) } + +// LoadImage is a wrapper function for libpod PruneVolumes +func (r *LocalRuntime) LoadImage(ctx context.Context, name string, cli *cliconfig.LoadValues) (string, error) { + var ( + writer io.Writer + ) + if !cli.Quiet { + writer = os.Stderr + } + return r.Runtime.LoadImage(ctx, name, cli.Input, writer, cli.SignaturePolicy) +} -- cgit v1.2.3-54-g00ecf