public class CloudFileServiceMinioImpl extends java.lang.Object implements CloudFileService
| 构造器和说明 |
|---|
CloudFileServiceMinioImpl(CloudProps cloudProps) |
CloudFileServiceMinioImpl(java.lang.String endpoint,
java.lang.String regionId,
java.lang.String bucket,
java.lang.String accessKey,
java.lang.String secretKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
org.noear.solon.core.handle.Result<?> |
delete(java.lang.String bucket,
java.lang.String key)
删除文件
|
org.noear.solon.core.handle.Result |
deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
批量删除文件
|
boolean |
exists(java.lang.String bucket,
java.lang.String key)
是否存在
|
Media |
get(java.lang.String bucket,
java.lang.String key)
获取文件
|
io.minio.MinioClient |
getClient() |
java.lang.String |
getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
获取文件临时地址
|
org.noear.solon.core.handle.Result<?> |
put(java.lang.String bucket,
java.lang.String key,
Media media)
推入文件
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteBatch, exists, get, getTempUrl, getTempUrl, getTempUrl, putpublic CloudFileServiceMinioImpl(CloudProps cloudProps)
public CloudFileServiceMinioImpl(java.lang.String endpoint,
java.lang.String regionId,
java.lang.String bucket,
java.lang.String accessKey,
java.lang.String secretKey)
public io.minio.MinioClient getClient()
public boolean exists(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServiceexists 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic java.lang.String getTempUrl(java.lang.String bucket,
java.lang.String key,
java.time.Duration duration)
throws CloudFileException,
java.lang.UnsupportedOperationException
CloudFileServicegetTempUrl 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionjava.lang.UnsupportedOperationExceptionpublic Media get(java.lang.String bucket, java.lang.String key) throws CloudFileException
CloudFileServiceget 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result<?> put(java.lang.String bucket,
java.lang.String key,
Media media)
throws CloudFileException
CloudFileServiceput 在接口中 CloudFileServicebucket - 存储桶key - 存储键media - 媒体CloudFileExceptionpublic org.noear.solon.core.handle.Result<?> delete(java.lang.String bucket,
java.lang.String key)
throws CloudFileException
CloudFileServicedelete 在接口中 CloudFileServicebucket - 存储桶key - 存储键CloudFileExceptionpublic org.noear.solon.core.handle.Result deleteBatch(java.lang.String bucket,
java.util.Collection<java.lang.String> keys)
throws CloudFileException
CloudFileServicedeleteBatch 在接口中 CloudFileServicebucket - 存储桶keys - 存储键集合CloudFileException