diff options
author | Brent Baude <bbaude@redhat.com> | 2020-04-20 12:44:02 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-21 09:23:27 -0500 |
commit | 29ec539b3ffad15624ee7934ec7dcbca2177db8e (patch) | |
tree | 7b724f29d07c1289f1578463fb2ed065b8db6626 /pkg/domain/entities | |
parent | f4c2eb1d9dcff5feda5c3eae81ce1bcdbf166ec4 (diff) | |
download | podman-29ec539b3ffad15624ee7934ec7dcbca2177db8e.tar.gz podman-29ec539b3ffad15624ee7934ec7dcbca2177db8e.tar.bz2 podman-29ec539b3ffad15624ee7934ec7dcbca2177db8e.zip |
podmanv2 cp
enable podman to copy files between container and host, local mode only. this is a straight port of v1 code to v2.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/containers.go | 10 | ||||
-rw-r--r-- | pkg/domain/entities/engine_container.go | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/domain/entities/containers.go b/pkg/domain/entities/containers.go index 3f9d2392c..e58258b75 100644 --- a/pkg/domain/entities/containers.go +++ b/pkg/domain/entities/containers.go @@ -356,3 +356,13 @@ type ContainerPortReport struct { Id string Ports []ocicni.PortMapping } + +// ContainerCpOptions describes input options for cp +type ContainerCpOptions struct { + Pause bool + Extract bool +} + +// ContainerCpReport describes the output from a cp operation +type ContainerCpReport struct { +} diff --git a/pkg/domain/entities/engine_container.go b/pkg/domain/entities/engine_container.go index 58f7af41a..60833d879 100644 --- a/pkg/domain/entities/engine_container.go +++ b/pkg/domain/entities/engine_container.go @@ -16,6 +16,7 @@ type ContainerEngine interface { ContainerCleanup(ctx context.Context, namesOrIds []string, options ContainerCleanupOptions) ([]*ContainerCleanupReport, error) ContainerPrune(ctx context.Context, options ContainerPruneOptions) (*ContainerPruneReport, error) ContainerCommit(ctx context.Context, nameOrId string, options CommitOptions) (*CommitReport, error) + ContainerCp(ctx context.Context, source, dest string, options ContainerCpOptions) (*ContainerCpReport, error) ContainerCreate(ctx context.Context, s *specgen.SpecGenerator) (*ContainerCreateReport, error) ContainerDiff(ctx context.Context, nameOrId string, options DiffOptions) (*DiffReport, error) ContainerExec(ctx context.Context, nameOrId string, options ExecOptions) (int, error) |