Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

aviramha
Copy link
Contributor

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

Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
Signed-off-by: Aviram Hassan <aviramyhassan@gmail.com>
.await
.expect("failed to blob stream push");

assert_eq!(layer_location, format!("http://localhost:{}/v2/hello-wasm/blobs/sha256:6165c4ad43c0803798b6f2e49d6348c915d52c999a5f890846cee77ea65d230b", port));
Copy link
Contributor

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

@aviramha
Copy link
Contributor Author

aviramha commented Feb 2, 2024

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.

@flavio
Copy link
Contributor

flavio commented Feb 7, 2024

@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 :)

@aviramha
Copy link
Contributor Author

aviramha commented Feb 8, 2024

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.

@flavio
Copy link
Contributor

flavio commented Feb 9, 2024

@aviramha no worries, I don't think we're on a hurry to push out a new version of the crate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants