-
Notifications
You must be signed in to change notification settings - Fork 53
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 streaming push #110
base: main
Are you sure you want to change the base?
Add streaming push #110
Conversation
d309988
to
648f32b
Compare
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
648f32b
to
b2f855f
Compare
.await | ||
.expect("failed to blob stream push"); | ||
|
||
assert_eq!(layer_location, format!("http://localhost:{}/v2/hello-wasm/blobs/sha256:6165c4ad43c0803798b6f2e49d6348c915d52c999a5f890846cee77ea65d230b", port)); |
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.
do not hard code the shasum, but rather use digest
defined on line 2507
I'm not sure about this PR because when I tested it it took infinite time to run opposed to the "one off" functions. I'll finish the re-auth first. |
@aviramha can you rebase this PR against main? Also, @thomastaylor312 and I would like to tag a new release of this crate once this PR gets merged :) |
I think it'll take me some time to re-visit, while I tried to use this flow I couldn't manage to get it to work so I fear there needs to be more thinking on the design. |
@aviramha no worries, I don't think we're on a hurry to push out a new version of the crate |
New function -
push_blob_stream
lets users pass a stream to the blob upload function in order for it to iterate.The signature is similar to the one of the pull so those could be chained.
Builds upon #109