Update s3
This commit is contained in:
parent
748e042ada
commit
3f65e61824
2 changed files with 8 additions and 3 deletions
|
@ -54,7 +54,12 @@ issues:
|
|||
|
||||
Config Parameter:
|
||||
|
||||
*
|
||||
* prefix: Path/S3 Prefix to the Backups
|
||||
* keyid: API Key Id
|
||||
* secret: API Key Secret
|
||||
* bucket: Name of the bucket
|
||||
* endpoint: Endpoint
|
||||
* region: Region
|
||||
|
||||
|
||||
## Config
|
||||
|
|
|
@ -14,7 +14,7 @@ type S3FileSystem struct {
|
|||
func (l S3FileSystem) ListFiles() ([]File, error) {
|
||||
|
||||
s3Config := &aws.Config{
|
||||
Credentials: credentials.NewStaticCredentials(l.Config["keyid"], l.Config["applicationkey"], ""),
|
||||
Credentials: credentials.NewStaticCredentials(l.Config["keyid"], l.Config["secret"], ""),
|
||||
Endpoint: aws.String(l.Config["endpoint"]),
|
||||
Region: aws.String(l.Config["region"]),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
|
@ -59,7 +59,7 @@ func (l S3FileSystem) ListFiles() ([]File, error) {
|
|||
|
||||
func (I S3FileSystem) Delete(files []File) error {
|
||||
s3Config := &aws.Config{
|
||||
Credentials: credentials.NewStaticCredentials(I.Config["keyid"], I.Config["applicationkey"], ""),
|
||||
Credentials: credentials.NewStaticCredentials(I.Config["keyid"], I.Config["secret"], ""),
|
||||
Endpoint: aws.String(I.Config["endpoint"]),
|
||||
Region: aws.String(I.Config["region"]),
|
||||
S3ForcePathStyle: aws.Bool(true),
|
||||
|
|
Loading…
Reference in a new issue