-
Notifications
You must be signed in to change notification settings - Fork 758
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
ImageDestination should receive Writers #120
Comments
I’m not sure. Once you successfully start reading a blob, there is really nothing else to do, so the API can be as simple as a For writing, there may well be a “commit” step (e.g. I don’t know, perhaps that can be very cleanly done by using
Both are easy to do in a single Right now, it seems to me that just as a refactoring this would make the code just more complex. Other aspects to consider:
So I guess we will eventually need a more complex blob upload API; whether that would be a simple |
@runcom @mtrmac @vrothberg THree year old issue, almost. Should we close this? |
We now do progress reporting, and it did not require an interface change to use At least as far as skopeo cares, this is an internal implementation details that users don’t care about, and we can change the API as necessary any time, so tracking this in skopeo makes little sense nowadays. (As far as c/image cares, changing the API would require a major version bump, and anyway if it happens, it should be feature-driven. Right now destinations are easier to implement if they need a “blob commit“ step if they are given an |
@mtrmac just a tracking question
Wouldn't it be better if ImageDestination return Writers? I don't have anything in mind about how to unify all the image destinations to do so but as we return Readers from ImageSource it came to my mind why don't do the same and return Writers there.
I'm saying, why don't we try and further abstract methods in ImageDestination to support this? is it doable? wdyt?
The text was updated successfully, but these errors were encountered: