mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-11 11:25:45 +00:00
Added some tests to verify that files extractions works with different compression format. Created a decompressor interface with 2 main methods: reader(): returns an io.Reader for the specific compression algorithm copy(): extracts the compressed file into the file provided as param Created 5 decompressor types: - gzip: extract gzip files - xz: extract xz files - zip: extract zip files - generic: extract any other file using github.com/containers/image/v5/pkg/compression - uncompressed: only do a copy of the file Minor fix to the progress bar instances: added a call to bar.Abort(false) that happens before Progress.Wait() to avoid that it hangs when a bar is not set as completed although extraction is done. Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com> |
||
|---|---|---|
| .. | ||
| testfiles | ||
| compression_test.go | ||
| config.go | ||
| copy_test.go | ||
| decompress.go | ||
| generic.go | ||
| gzip.go | ||
| sparse_file_writer.go | ||
| sparse_file_writer_test.go | ||
| uncompressed.go | ||
| xz.go | ||
| zip.go | ||