From 64c8fb7c2460eb561c8496f781f26d65443eea59 Mon Sep 17 00:00:00 2001 From: baude Date: Sun, 27 Jan 2019 09:57:44 -0600 Subject: podman-remote import|export addition of import and export for the podman-remote client. This includes the ability to send and receive files between the remote-client and the "podman" host using an upgraded varlink connection. Signed-off-by: baude --- libpod/adapter/client.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libpod/adapter/client.go') diff --git a/libpod/adapter/client.go b/libpod/adapter/client.go index b3bb9acae..6512a5952 100644 --- a/libpod/adapter/client.go +++ b/libpod/adapter/client.go @@ -34,3 +34,14 @@ func (r RemoteRuntime) Connect() (*varlink.Connection, error) { } return connection, nil } + +// RefreshConnection is used to replace the current r.Conn after things like +// using an upgraded varlink connection +func (r RemoteRuntime) RefreshConnection() error { + newConn, err := r.Connect() + if err != nil { + return err + } + r.Conn = newConn + return nil +} -- cgit v1.2.3-54-g00ecf