-
Notifications
You must be signed in to change notification settings - Fork 974
PutBlobFromUrl API #20016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PutBlobFromUrl API #20016
Changes from all commits
27c921b
eb5a9da
ca45bb5
6b36654
34f9d83
39eb0eb
af2f42e
869bacb
9301d61
9eac311
bf00187
21ce1c5
d182595
6cb019d
ea9d1ce
3c0d225
5d4b433
3c78838
ac9b72d
1b8649a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,6 +165,20 @@ func (bb *Client) Upload(ctx context.Context, body io.ReadSeekCloser, options *U | |
| return resp, err | ||
| } | ||
|
|
||
| // UploadBlobFromURL - The Put Blob from URL operation creates a new Block Blob where the contents of the blob are read from | ||
| // a given URL. Partial updates are not supported with Put Blob from URL; the content of an existing blob is overwritten | ||
| // with the content of the new blob. To perform partial updates to a block blob’s contents using a source URL, use the Put | ||
| // Block from URL API in conjunction with Put Block List. | ||
| // For more information, see https://learn.microsoft.com/rest/api/storageservices/put-blob-from-url | ||
| func (bb *Client) UploadBlobFromURL(ctx context.Context, copySource string, options *UploadBlobFromURLOptions) (UploadBlobFromURLResponse, error) { | ||
| opts, httpHeaders, leaseAccessConditions, cpkInfo, cpkSourceInfo, modifiedAccessConditions, sourceModifiedConditions := options.format() | ||
|
|
||
| resp, err := bb.generated().PutBlobFromURL(ctx, int64(0), copySource, opts, httpHeaders, leaseAccessConditions, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we might need trasacational md5/crc or setting up md5 sum feature here as well.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We just need to support
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hold off on this for now, we need to figure out what we are doing with checksuming in AzBlob. Consider this comment non-blocking. |
||
| cpkInfo, cpkSourceInfo, modifiedAccessConditions, sourceModifiedConditions) | ||
|
|
||
| return resp, err | ||
| } | ||
|
|
||
| // StageBlock uploads the specified block to the block blob's "staging area" to be later committed by a call to CommitBlockList. | ||
| // Note that the http client closes the body stream after the request is sent to the service. | ||
| // For more information, see https://docs.microsoft.com/rest/api/storageservices/put-block. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.