tusd/pkg/azurestore
Ole-Martin Bratteng 35dbca86f1
Fix leakage of info when no azure blob is found (#664)
* Create `isAzureError` function

* Throw 404 is info file is not found

* Use `isAzureError` in GetOffset function

* Make `GetUpload` match others without named returns

* Follow code style for `isAzureError` not returning but setting `err` to value

* Return not found when the blob is not found
This will also be triggered when the blob is being uploaded but not yet committed

* Return not found if blob is not found when getting offset

* Don't return error in GetUpload if GetOffset returns `handler.ErrNotFound`
2022-03-17 17:29:15 +01:00
..
azureservice.go Fix leakage of info when no azure blob is found (#664) 2022-03-17 17:29:15 +01:00
azurestore.go Fix leakage of info when no azure blob is found (#664) 2022-03-17 17:29:15 +01:00
azurestore_mock_test.go azurestore: Add implementation 2021-07-29 01:14:50 +02:00
azurestore_test.go azurestore: Add implementation 2021-07-29 01:14:50 +02:00