Update to fix lint errors
Context should use type values instead of strings. Updated direct calls to WithValue, but still other uses of string keys. Update Acl to ACL in s3 driver. Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
99cb7c0946
commit
d35d94dcec
6 changed files with 71 additions and 45 deletions
|
@ -33,7 +33,7 @@ func init() {
|
|||
secure := os.Getenv("S3_SECURE")
|
||||
v4Auth := os.Getenv("S3_V4_AUTH")
|
||||
region := os.Getenv("AWS_REGION")
|
||||
objectAcl := os.Getenv("S3_OBJECT_ACL")
|
||||
objectACL := os.Getenv("S3_OBJECT_ACL")
|
||||
root, err := ioutil.TempDir("", "driver-")
|
||||
regionEndpoint := os.Getenv("REGION_ENDPOINT")
|
||||
if err != nil {
|
||||
|
@ -83,7 +83,7 @@ func init() {
|
|||
rootDirectory,
|
||||
storageClass,
|
||||
driverName + "-test",
|
||||
objectAcl,
|
||||
objectACL,
|
||||
}
|
||||
|
||||
return New(parameters)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue