mirror of https://github.com/containers/image.git
Reword the documentation a bit to suggest the edits are idempotent
In particular, it is OK to use CompressionOperation: Decompress on already-decompressed layers. TestUpdatedMIMEType already ensures this works correctly. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
parent
424482ff00
commit
27813fb65d
|
|
@ -135,8 +135,8 @@ type BlobInfo struct {
|
||||||
// CompressionOperation is used in Image.UpdateLayerInfos to instruct
|
// CompressionOperation is used in Image.UpdateLayerInfos to instruct
|
||||||
// whether the original layer's "compressed or not" should be preserved,
|
// whether the original layer's "compressed or not" should be preserved,
|
||||||
// possibly while changing the compression algorithm from one to another,
|
// possibly while changing the compression algorithm from one to another,
|
||||||
// or if it should be compressed or decompressed. The field defaults to
|
// or if it should be changed to compressed or decompressed.
|
||||||
// preserve the original layer's compressedness.
|
// The field defaults to preserve the original layer's compressedness.
|
||||||
// TODO: To remove together with CryptoOperation in re-design to remove
|
// TODO: To remove together with CryptoOperation in re-design to remove
|
||||||
// field out of BlobInfo.
|
// field out of BlobInfo.
|
||||||
CompressionOperation LayerCompression
|
CompressionOperation LayerCompression
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue