1
0
Fork 0

7 Commits (master)

Author SHA1 Message Date
Philip O'Toole 2b3e829fc8 Ensure table is created before shutting down 8 months ago
Mauri de Souza Meneguzzo 69933cbe35 aws: reuse session and S3 manager
The AWS session and s3 manager are concurrent safe, it should be reused
whenever possible:

    Sessions are safe to use concurrently as long as the Session is not
    being modified. Sessions should be cached when possible, because
    creating a new Session will load all configuration values from the
    environment, and config files each time the Session is created.

See https://pkg.go.dev/github.com/aws/aws-sdk-go/aws/session

Currently, an aws session and s3 client/manager are created every time a
call to Upload, CurrentID or Download is made. I changed it so it creates
one session and S3 manager during app startup and reuse it afterwards.
8 months ago
Philip O'Toole cfefc090b0 Remove use of deprecated ioutil 8 months ago
Jason Tackaberry e60a0b54fc
Allow configurable S3 path style for auto backups
AWS has deprecated the path-style URLs but it's required for some
S3-like alternatives such as Minio.
9 months ago
Philip O'Toole 882f19df00 Move some downloading code to restore package 9 months ago
Philip O'Toole ad916270d2 Bring go mod import path into compliance 9 months ago
Philip O'Toole 12f3dd913a Even better package name 1 year ago