diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-07 11:09:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-07 11:09:43 +0200 |
commit | aca6ef01d8bd265fb5343cf9b8a212f6073a2095 (patch) | |
tree | a44018f17f42fcfc64eeaec2f52f3ab0abc9a439 /libpod/container_api.go | |
parent | 5a209b3d76addbf5ec658a7212a84ae7afce2fee (diff) | |
parent | 949374e589876dcf726a9b93c48ac51bb625fed3 (diff) | |
download | podman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.tar.gz podman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.tar.bz2 podman-aca6ef01d8bd265fb5343cf9b8a212f6073a2095.zip |
Merge pull request #10567 from adrianreber/2021-06-04-compress
Add support for selectable checkpoint archive compression algorithm
Diffstat (limited to 'libpod/container_api.go')
-rw-r--r-- | libpod/container_api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go index 4ccb240e7..b75d0b41d 100644 --- a/libpod/container_api.go +++ b/libpod/container_api.go @@ -12,6 +12,7 @@ import ( "github.com/containers/podman/v3/libpod/define" "github.com/containers/podman/v3/libpod/events" "github.com/containers/podman/v3/pkg/signal" + "github.com/containers/storage/pkg/archive" "github.com/pkg/errors" "github.com/sirupsen/logrus" ) @@ -776,6 +777,9 @@ type ContainerCheckpointOptions struct { // ImportPrevious tells the API to restore container with two // images. One is TargetFile, the other is ImportPrevious. ImportPrevious string + // Compression tells the API which compression to use for + // the exported checkpoint archive. + Compression archive.Compression } // Checkpoint checkpoints a container |