oras-project / rust-oci-client

A Rust crate to interact with OCI registries
Apache License 2.0
95 stars 52 forks source link

Add stream processing API for pull_blob #53

Closed arronwy closed 1 year ago

arronwy commented 1 year ago

current pull_blob API need pass an AsyncWrite like File or Memory. Image blobs are compressed/encrypted by default, to reduce memory and extra disk IO consumption, it can returns an AsyncRead which can integrate seamless with following blob processing using Rust's asynchronous IO types like async_compression https://docs.rs/async-compression/latest/async_compression/