check minio

This commit is contained in:
namhq1989 2023-01-08 20:40:20 +07:00
parent f041910455
commit 0d30548e02
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ 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,