-
Notifications
You must be signed in to change notification settings - Fork 4
move compression to a separate package #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c77f9a7 to
101e3d1
Compare
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
"Uncompressed" is 0, and the default value. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
4c9b11f to
02385ef
Compare
02385ef to
e1662e1
Compare
compression/compression.go
Outdated
| type Compression int | ||
|
|
||
| const ( | ||
| Uncompressed Compression = 0 // Uncompressed represents the uncompressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be None instead of Uncompressed as suggested in moby/moby#49167 (comment)
I kept it to align with containerd, but TBD I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a blocker for me, but I would be much more in favor of None (compression.None instead of compression.Uncompressed) 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK; done!
I also swapped the order of commits, doing the test-table changes first (before the move)
compression/compression.go
Outdated
| type Compression int | ||
|
|
||
| const ( | ||
| Uncompressed Compression = 0 // Uncompressed represents the uncompressed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really a blocker for me, but I would be much more in favor of None (compression.None instead of compression.Uncompressed) 😅
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
TODO: align with containerd pkg/archive/compression, which - also moved the utilities to Compress/Decompress streams - changed the Extension to not include ".tar" Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
e023a70 to
570d1cb
Compare
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It's only used in tests now, so move it there. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
570d1cb to
b19a81b
Compare
|
@vvoland PTAL - looks like branch protection on this repo requires "re-approval" |
No description provided.