zarf
zarf copied to clipboard
refactor progress bar implementation in oci and zoci
Describe what should be investigated or refactored
Currently there are several ways that progress bars are being implemented in our oci code
- We use our implementation of roundTripper which updates our progress bar each time RoundTrip is called.
- We check the file system and see how many bytes are uploaded out of bytes expected
- We check how many layers we've downloaded out of the total amount of layers.
It would be nice to have one consistent way of managing progress for implementers of the OCI package. It would also make our code simpler as an implementer of the package