distribution/registry
Flavian Missi 2b72c4d1ca registry/storage/driver/azure: fix Move method
Something seems broken on azure/azure sdk side - it is currently not
possible to copy a blob of type AppendBlob using `CopyFromURL`.
Using the AppendBlob client via NewAppendBlobClient does not work
either.

According to Azure the correct way to do this is by using
StartCopyFromURL. Because this is an async operation, we need to do
polling ourselves. A simple backoff mechanism is used, where during each
iteration, the configured delay is multiplied by the retry number.

Also introduces two new config options for the Azure driver:
copy_status_poll_max_retry, and copy_status_poll_delay.

Signed-off-by: Flavian Missi <fmissi@redhat.com>
2023-06-26 13:47:30 +02:00
..
api Merge pull request from GHSA-hqxw-f8mx-cpmw 2023-05-09 21:21:54 +01:00
auth ignore SA1019: ac.(*accessController).rootCerts.Subjects has been deprecated 2023-05-09 16:04:17 +02:00
client Ignore SA1019: "schema1 is deprecated" linting errors 2023-05-09 16:04:17 +02:00
handlers Merge pull request from GHSA-hqxw-f8mx-cpmw 2023-05-09 21:21:54 +01:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware format code with gofumpt 2022-11-03 22:48:20 +01:00
proxy Ignore SA1019: "schema1 is deprecated" linting errors 2023-05-09 16:04:17 +02:00
storage registry/storage/driver/azure: fix Move method 2023-06-26 13:47:30 +02:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go ignore SA1019: ac.(*accessController).rootCerts.Subjects has been deprecated 2023-05-09 16:04:17 +02:00
registry_test.go replace deprecated io/ioutil 2022-11-04 23:47:52 +01:00
root.go format code with gofumpt 2022-11-03 22:48:20 +01:00