mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
Added Conn method to return the Minio instance
This commit is contained in:
@@ -20,6 +20,7 @@ func (s *Storage) Close() error
|
||||
func (s *Storage) CheckBucket() error
|
||||
func (s *Storage) CreateBucket() error
|
||||
func (s *Storage) RemoveBucket() error
|
||||
func (s *Storage) Conn() *minio.Client
|
||||
```
|
||||
### Installation
|
||||
Install the Minio implementation:
|
||||
|
||||
@@ -184,3 +184,8 @@ func (s *Storage) CreateBucket() error {
|
||||
func (s *Storage) RemoveBucket() error {
|
||||
return s.minio.RemoveBucket(s.ctx, s.cfg.Bucket)
|
||||
}
|
||||
|
||||
// Conn Return minio client
|
||||
func (s *Storage) Conn() *minio.Client {
|
||||
return s.minio
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user