File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ import (
1414
1515type objectInfo = minio.ObjectInfo
1616type 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
2626type 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 }
You can’t perform that action at this time.
0 commit comments