check minio
This commit is contained in:
parent
0d30548e02
commit
3a4bb6d7b1
1
minio.go
1
minio.go
|
@ -19,6 +19,7 @@ func Init(cfg Config) (*Client, error) {
|
||||||
client, err := min.New(cfg.Endpoint, &min.Options{
|
client, err := min.New(cfg.Endpoint, &min.Options{
|
||||||
Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""),
|
Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""),
|
||||||
Secure: cfg.UseSSL,
|
Secure: cfg.UseSSL,
|
||||||
|
Region: "ap-southeast-1",
|
||||||
})
|
})
|
||||||
|
|
||||||
// return if error
|
// return if error
|
||||||
|
|
Loading…
Reference in New Issue