-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uploader: Add support for backup storage upload (#60)
* go.mod: Upgrade go version to 1.22 This was required to be able to use the ff lib for some reason. * go.mod: Add github.com/peterbourgon/ff * main: Allow getting configs from env var Copied all the stuff we usually have for flag parsing using peterbourgon/ff and an explicit FlagSet * main: Create StorageBackupURLs config * core: Create uploadFile helper * core: Add retries to thumbnail upload By migrating to uploadFile it gets support automatically too. * core: Implement backup storage upload * core: Move storj workaround to uploadFile Primary and backup have different storage providers so we need to move that lower layer. * Fix tests * core: Simplify adding the Storj metadata to fields * uploader: Change storage backup config to a comma-map * storageBackupURLs -> storageFallbackURLs * core: Make sure last manifest upload has retries * .: Add test for commamap flag Copied from catalyst-api too * core: Add a couple tests for the new logic * reset backoff object --------- Co-authored-by: Max Holland <[email protected]>
- Loading branch information
Showing
6 changed files
with
264 additions
and
2,291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.