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:
Miloslav Trmač 2024-01-31 02:17:18 +01:00
parent 424482ff00
commit 27813fb65d
1 changed files with 2 additions and 2 deletions

View File

@ -135,8 +135,8 @@ type BlobInfo struct {
// CompressionOperation is used in Image.UpdateLayerInfos to instruct
// whether the original layer's "compressed or not" should be preserved,
// possibly while changing the compression algorithm from one to another,
// or if it should be compressed or decompressed. The field defaults to
// preserve the original layer's compressedness.
// or if it should be changed to compressed or decompressed.
// The field defaults to preserve the original layer's compressedness.
// TODO: To remove together with CryptoOperation in re-design to remove
// field out of BlobInfo.
CompressionOperation LayerCompression