public class CloudFileServiceMinioImpl extends Object implements org.noear.solon.cloud.service.CloudFileService
| Constructor and Description |
|---|
CloudFileServiceMinioImpl(org.noear.solon.cloud.CloudProps cloudProps) |
CloudFileServiceMinioImpl(String endpoint,
String regionId,
String bucket,
String accessKey,
String secretKey) |
| Modifier and Type | Method and Description |
|---|---|
org.noear.solon.core.handle.Result<?> |
delete(String bucket,
String key) |
org.noear.solon.core.handle.Result |
deleteBatch(String bucket,
Collection<String> keys) |
boolean |
exists(String bucket,
String key) |
org.noear.solon.cloud.model.Media |
get(String bucket,
String key) |
io.minio.MinioClient |
getClient() |
String |
getTempUrl(String bucket,
String key,
Duration duration) |
org.noear.solon.core.handle.Result<?> |
put(String bucket,
String key,
org.noear.solon.cloud.model.Media media) |
public CloudFileServiceMinioImpl(org.noear.solon.cloud.CloudProps cloudProps)
public io.minio.MinioClient getClient()
public boolean exists(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
exists in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic String getTempUrl(String bucket, String key, Duration duration) throws org.noear.solon.cloud.exception.CloudFileException, UnsupportedOperationException
getTempUrl in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionUnsupportedOperationExceptionpublic org.noear.solon.cloud.model.Media get(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
get in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.core.handle.Result<?> put(String bucket, String key, org.noear.solon.cloud.model.Media media) throws org.noear.solon.cloud.exception.CloudFileException
put in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.core.handle.Result<?> delete(String bucket, String key) throws org.noear.solon.cloud.exception.CloudFileException
delete in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic org.noear.solon.core.handle.Result deleteBatch(String bucket, Collection<String> keys) throws org.noear.solon.cloud.exception.CloudFileException
deleteBatch in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionCopyright © 2025. All rights reserved.