-
Notifications
You must be signed in to change notification settings - Fork 542
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
Add WithProgress
option for remote.Write
#952
Comments
+1 I would find this also useful for |
Would it be correct to assume that go-containerregistry/pkg/v1/progress.go Line 21 in 77421d5
i.e. |
Yeah, I'd like to have them behave similarly. The difference with MultiWrite already doesn't support streaming layers, so we can know ahead of time how many total bytes we anticipate writing. In theory we'd like to support streaming layers though, in which case the I think we've also talked about it taking a chan of things to write, so the update's |
Thanks that is pretty helpful! I would like to volunteer to work on this (This Friday will probably be the day I work on it). wrt MultiWrite and streaming layers: |
Sounds good @DennisDenuto, thanks! Let us know if you have any questions or problems, we'd be happy to help. |
The equivalent in docker land partitions upload progress by ID. I think that's usually layers. I'm honestly not sure what to do here. A lot of the time, I want a single progress bar, and that's an easy model to program against... but folks might want to display more complex things than a single bar (e.g. per-layer progress), but making that change actually seems nontrivial, and I'm not sure how much it makes sense for MultiWrite (there can be hundreds of layers)...
Yes, for tarball we take a channel: go-containerregistry/pkg/v1/tarball/write.go Line 396 in efb2d62
I imagine we want a uniform API. |
I think we should start with It sounds like that's sufficient for @DennisDenuto 's immediate use case, and I imagine it'll be good enough for most users at least for now. |
There are some notable differences between tarball and remote wrt writing layer contents, that we should be careful to handle:
I think we should try to get this landed in |
Thanks for raising these differences. I was thinking of writing an Example test similar to what Starting with the less complex |
As the title.
The text was updated successfully, but these errors were encountered: