oras-project / rust-oci-client

A Rust crate to interact with OCI registries
Apache License 2.0
86 stars 45 forks source link

Add streaming push #110

Open aviramha opened 5 months ago

aviramha commented 5 months ago

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

aviramha commented 5 months ago

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 commented 5 months ago

@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 commented 5 months ago

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 commented 5 months ago

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