Rename credentials to config
This commit is contained in:
parent
f16c868b2a
commit
360d9bfe69
8 changed files with 33 additions and 33 deletions
cmd/s3driver
|
@ -40,14 +40,14 @@ var (
|
|||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
cr := &s3.Credentials{
|
||||
cfg := &s3.Config{
|
||||
AccessKeyID: *accessKeyID,
|
||||
SecretAccessKey: *secretAccessKey,
|
||||
Endpoint: *s3endpoint,
|
||||
Region: *region,
|
||||
}
|
||||
|
||||
driver, err := s3.NewS3(*nodeID, *endpoint, cr)
|
||||
driver, err := s3.NewS3(*nodeID, *endpoint, cfg)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue