used black for my purposes
This commit is contained in:
parent
62a395f178
commit
9e9a8edfe9
@ -34,18 +34,13 @@ def get_minio_client(access_key=None, secret_key=None, backend=None) -> Minio:
|
|||||||
endpoint = f"{CONFIG.s3.minio.host}:{CONFIG.s3.minio.port}"
|
endpoint = f"{CONFIG.s3.minio.host}:{CONFIG.s3.minio.port}"
|
||||||
secure = False
|
secure = False
|
||||||
|
|
||||||
return Minio(
|
return Minio(endpoint=endpoint, access_key=access_key, secret_key=secret_key, secure=secure)
|
||||||
endpoint=endpoint,
|
|
||||||
access_key=access_key,
|
|
||||||
secret_key=secret_key,
|
|
||||||
secure=secure
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class MinioHandle(StorageHandle):
|
class MinioHandle(StorageHandle):
|
||||||
"""Wrapper around a MinIO client that provides operations on the MinIO store required by the service."""
|
"""Wrapper around a MinIO client that provides operations on the MinIO store required by the service."""
|
||||||
|
|
||||||
def __init__(self, backend = None):
|
def __init__(self, backend=None):
|
||||||
"""Initializes a MinioHandle"""
|
"""Initializes a MinioHandle"""
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.client: Minio = get_minio_client(backend=backend)
|
self.client: Minio = get_minio_client(backend=backend)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user