remove logs
This commit is contained in:
parent
3a4bb6d7b1
commit
ce13b7762f
|
@ -1,5 +1,7 @@
|
|||
package minio
|
||||
|
||||
var region = "ap-southeast-1"
|
||||
|
||||
var Buckets = struct {
|
||||
HelpCenter string
|
||||
}{
|
||||
|
|
9
minio.go
9
minio.go
|
@ -1,7 +1,6 @@
|
|||
package minio
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
|
@ -14,12 +13,10 @@ func Init(cfg Config) (*Client, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
fmt.Println("cfg", cfg)
|
||||
|
||||
client, err := min.New(cfg.Endpoint, &min.Options{
|
||||
Creds: credentials.NewStaticV4(cfg.AccessKey, cfg.SecretKey, ""),
|
||||
Secure: cfg.UseSSL,
|
||||
Region: "ap-southeast-1",
|
||||
Region: region,
|
||||
})
|
||||
|
||||
// return if error
|
||||
|
@ -34,10 +31,6 @@ func Init(cfg Config) (*Client, error) {
|
|||
|
||||
fmt.Printf("⚡️[minio]: connected to %s \n", cfg.Endpoint)
|
||||
|
||||
buckets, err := client.ListBuckets(context.Background())
|
||||
fmt.Println("buckets", buckets)
|
||||
fmt.Println("err", err)
|
||||
|
||||
// return
|
||||
return &Client{
|
||||
client: client,
|
||||
|
|
Loading…
Reference in New Issue