diff --git a/run.go b/run.go index 7d660e7..6651e59 100644 --- a/run.go +++ b/run.go @@ -19,7 +19,12 @@ func main() { accessKeyID, secretAccessKey, bucketName, endpoint, port, ssl := getEnv() // Initialize MinIO client - minioClient, err := minio.New(endpoint, accessKeyID, secretAccessKey, ssl) + minioClient, err := minio.New({ + endPoint: endpoint, + port: port + accessKey: accessKeyID, + secretKey: secretAccessKey, + useSSL: ssl) if err != nil { log.Fatal(err) }