Module generic_decompress

Module generic_decompress 

Source
Expand description

This module primarily contains the Decompressor struct which is used to decompress a stream based on its OCI media type.

It also contains the ReadWithGetInnerMut trait and related concrete implementations thereof. These provide a means for each specific decompressor to give mutable access to the inner reader.

For example, the GzipDecompressor would give the underlying compressed stream.

We need a common way to access this stream so that we can flush the data during cleanup.

See: https://github.com/bootc-dev/bootc/issues/1407

Structsยง

Decompressor ๐Ÿ”’
GzipDecompressor ๐Ÿ”’
TransparentDecompressor ๐Ÿ”’
ZstdDecompressor ๐Ÿ”’

Constantsยง

DOCKER_TYPE_LAYER_TAR ๐Ÿ”’
The legacy MIME type returned by the skopeo/(containers/storage) code when we have local uncompressed docker-formatted image. TODO: change the skopeo code to shield us from this correctly

Traitsยง

ReadWithGetInnerMut ๐Ÿ”’
Extends the Read trait with another method to get mutable access to the inner reader