diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-12-08 14:24:34 +0100 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-12-09 11:24:32 +0100 |
commit | 8472efdbd1efcb4eea9872baf56e2473a0dd970f (patch) | |
tree | 9898e72b72ba2ec6c102a2ae8e41f8a0ae9abe4e /pkg/domain/infra/tunnel/containers.go | |
parent | dd295f297b6dd51d22c64c75f4ef4f80f953bbde (diff) | |
download | podman-8472efdbd1efcb4eea9872baf56e2473a0dd970f.tar.gz podman-8472efdbd1efcb4eea9872baf56e2473a0dd970f.tar.bz2 podman-8472efdbd1efcb4eea9872baf56e2473a0dd970f.zip |
pkg/copy: add parsing API
Add an API for parsing user input into a possibly specified container
and path. This allows for sharing the parsing code between the local
and the remote client (and bindings) in the future.
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/domain/infra/tunnel/containers.go')
-rw-r--r-- | pkg/domain/infra/tunnel/containers.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/domain/infra/tunnel/containers.go b/pkg/domain/infra/tunnel/containers.go index 3584668c7..e65fef0a4 100644 --- a/pkg/domain/infra/tunnel/containers.go +++ b/pkg/domain/infra/tunnel/containers.go @@ -732,7 +732,8 @@ func (ic *ContainerEngine) ContainerPort(ctx context.Context, nameOrID string, o } func (ic *ContainerEngine) ContainerCp(ctx context.Context, source, dest string, options entities.ContainerCpOptions) error { - return errors.New("not implemented") + return nil + // return containers.Copy(ic.ClientCxt, source, dest, options) } // Shutdown Libpod engine |