Added Conn method to return the Minio instance

This commit is contained in:
mstgnz
2023-08-23 14:29:49 +03:00
parent bec8bb64e1
commit d3d3a58f6e
2 changed files with 6 additions and 0 deletions

View File

@@ -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:

View File

@@ -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
}