|
|
@ -41,7 +41,7 @@ func uploadReaderAtToBlockBlob(ctx context.Context, reader io.ReaderAt, readerSi |
|
|
|
if o.Progress != nil { |
|
|
|
body = pipeline.NewRequestBodyProgress(body, o.Progress) |
|
|
|
} |
|
|
|
return blockBlobURL.Upload(ctx, body, o.BlobHTTPHeaders, o.Metadata, o.AccessConditions, o.BlobAccessTier, o.BlobTagsMap, o.ClientProvidedKeyOptions) |
|
|
|
return blockBlobURL.Upload(ctx, body, o.BlobHTTPHeaders, o.Metadata, o.AccessConditions, o.BlobAccessTier, o.BlobTagsMap, o.ClientProvidedKeyOptions, o.ImmutabilityPolicyOptions) |
|
|
|
} |
|
|
|
|
|
|
|
var numBlocks = uint16(((readerSize - 1) / o.BlockSize) + 1) |
|
|
@ -85,7 +85,7 @@ func uploadReaderAtToBlockBlob(ctx context.Context, reader io.ReaderAt, readerSi |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
// All put blocks were successful, call Put Block List to finalize the blob
|
|
|
|
return blockBlobURL.CommitBlockList(ctx, blockIDList, o.BlobHTTPHeaders, o.Metadata, o.AccessConditions, o.BlobAccessTier, o.BlobTagsMap, o.ClientProvidedKeyOptions) |
|
|
|
return blockBlobURL.CommitBlockList(ctx, blockIDList, o.BlobHTTPHeaders, o.Metadata, o.AccessConditions, o.BlobAccessTier, o.BlobTagsMap, o.ClientProvidedKeyOptions, o.ImmutabilityPolicyOptions) |
|
|
|
} |
|
|
|
|
|
|
|
// The UUID reserved variants.
|
|
|
|