Giorgio Zoppi
08/26/2020, 7:12 AMblobURL := s.ContainerUrl.NewBlockBlobURL(key.String())
get, err := blobURL.Download(ctx, 0, 0,
azblob.BlobAccessConditions{}, false)
if err != nil {
return Object{}, err
}
contentMd5String := base64.StdEncoding.EncodeToString(get.ContentMD5())
res := Object{
ObjectMetadata: ObjectMetadata{
UserMetadata: get.NewMetadata(),
CacheControl: aws.String(get.CacheControl()),
ContentDisposition: aws.String(get.ContentDisposition()),
ContentEncoding: aws.String(get.ContentEncoding()),
ContentLanguage: aws.String(get.ContentLanguage()),
ContentMD5: &contentMd5String,
ContentType: aws.String(get.ContentType()),
ContentLength: aws.Int64(get.ContentLength()),
ETag: aws.String(string(get.ETag())),
// Expires: not supported
// Tagging: not supported
},
ReadCloser: get.Body(azblob.RetryReaderOptions{}),
Key: key,
}Barak Amar
Giorgio Zoppi
08/26/2020, 7:21 AMGiorgio Zoppi
08/26/2020, 7:22 AMGiorgio Zoppi
08/26/2020, 7:22 AMGiorgio Zoppi
08/26/2020, 7:22 AMGiorgio Zoppi
08/26/2020, 7:22 AMGiorgio Zoppi
08/26/2020, 7:23 AMAriel Shaqed (Scolnicov)
08/26/2020, 8:27 AMGiorgio Zoppi
08/26/2020, 8:28 AMGiorgio Zoppi
08/26/2020, 8:28 AMAriel Shaqed (Scolnicov)
08/26/2020, 8:29 AM