Skip to content

Commit a932856

Browse files
committed
misc: s3 configuration changed
1 parent 5fd5606 commit a932856

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

examples/s3/s3.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ func main() {
1414
}
1515

1616
config := map[string]string{
17-
"bucketname": "test.storage",
17+
"bucket_name": "test.storage",
1818
"endpoint": "127.0.0.1:9000",
19-
"accessKey": "minio",
20-
"secretkey": "minio123",
19+
"access_key": "minio",
20+
"secret_key": "minio123",
2121
"token": "",
2222
"region": "",
23-
"sslenabled": "false",
23+
"ssl_enabled": "false",
2424
}
2525
err = s.SetConfig(config)
2626
if err != nil {

s3.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ import (
1414

1515
type objectInfo = minio.ObjectInfo
1616
type S3Configuration struct {
17-
BucketName string `json:"bucketname"`
17+
BucketName string `json:"bucket_name"`
1818
Endpoint string `json:"endpoint"`
19-
AccessKey string `json:"accesskey"`
20-
SecretAccessKey string `json:"secretkey"`
19+
AccessKey string `json:"access_key"`
20+
SecretAccessKey string `json:"secret_key"`
2121
SessionToken string `json:"token"`
2222
Region string `json:"region"`
23-
SSLEnabled Bool `json:"sslenabled"`
23+
SSLEnabled Bool `json:"ssl_enabled"`
2424
}
2525

2626
type S3Watcher struct {
@@ -212,7 +212,7 @@ func (u *S3Watcher) sync() {
212212
event := Event{
213213
Key: o.Key,
214214
Type: FileDeleted,
215-
Object: nil,
215+
Object: o,
216216
}
217217
u.Events <- event
218218
}

0 commit comments

Comments
 (0)