summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-12-08 14:24:34 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-12-09 11:24:32 +0100
commit8472efdbd1efcb4eea9872baf56e2473a0dd970f (patch)
tree9898e72b72ba2ec6c102a2ae8e41f8a0ae9abe4e /pkg/domain/infra/tunnel
parentdd295f297b6dd51d22c64c75f4ef4f80f953bbde (diff)
downloadpodman-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')
-rw-r--r--pkg/domain/infra/tunnel/containers.go3
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