Skip to content

Recommended way to connect an io.Writer to the S3 download manger #1735

Answered by jasdel
pete-woods asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like you're looking to download an object from S3, then stream the result to the standard output. If so, this is not a feature that is currently supported by the Downloader. GetObject operation method is the best way to do that at the moment. I think to support this the Downloader would need to have a "SequentialDownload" method/behavior that would still download object parts, but one at a time in order instead of out-of-order concurrently. If so a Feature Request would be a great to capture this use case.

The reasoning behind the Downloader requiring a io.WriterAt is that it is the only interface that allows concurrent writes to the underlying value. A io.Writer that does not s…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@pete-woods
Comment options

@pete-woods
Comment options

Answer selected by vudh1
Comment options

You must be logged in to vote
1 reply
@pete-woods
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants