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.
Structsยง
- Decompressor ๐
- Gzip
Decompressor ๐ - Transparent
Decompressor ๐ - Zstd
Decompressor ๐
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ยง
- Read
With ๐GetInner Mut - Extends the
Readtrait with another method to get mutable access to the inner reader