Athens: Stream zip up to AWS S3 storage

Created on 3 Jul 2018  路  6Comments  路  Source: gomods/athens

PR #200 changes the storage.Saver interface so that it accepts zip as io.Reader but the AWS S3 storage impl. uses ioutil.ReadAll to get a byte slice which gets then uploaded.

This could probably help:
https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#Uploader

Most helpful comment

I talked to Michal. I'll take this one.

All 6 comments

@marpio now that #200 is merged, is this issue completed?

Not yet. The s3 and gcp storages still pass a byte slice to their clients.

@robjloranger gcp is using Io.reader

Oh nice 馃槉, I missed the io copy

I talked to Michal. I'll take this one.

assigned to you @marpio

Was this page helpful?
0 / 5 - 0 ratings