spiegel_podman/pkg/machine/compression
Mario Loriedo 88af8852db Refactor machine decompress.go
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>
2024-02-25 22:29:02 +01:00
..
testfiles Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
compression_test.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
config.go zstd now default compression for podman machine 2024-02-20 14:26:41 -06:00
copy_test.go Vendor crc CopySparse 2024-02-09 19:33:56 +01:00
decompress.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
generic.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
gzip.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
sparse_file_writer.go Reformulate sparseWriter to deal with starting/ending zeroes explicitly 2024-02-23 02:09:39 +01:00
sparse_file_writer_test.go Expand sparseWriter tests 2024-02-23 02:09:39 +01:00
uncompressed.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
xz.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00
zip.go Refactor machine decompress.go 2024-02-25 22:29:02 +01:00