public class CloudFileServiceFastDFSImpl extends Object implements org.noear.solon.cloud.service.CloudFileService
| Constructor and Description |
|---|
CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
org.noear.solon.cloud.CloudProps cloudProps) |
| Modifier and Type | Method and Description |
|---|---|
org.noear.solon.core.handle.Result<Object> |
delete(String bucket,
String key) |
boolean |
exists(String bucket,
String key) |
org.noear.solon.cloud.model.Media |
get(String bucket,
String key) |
org.csource.fastdfs.StorageClient |
getClient()
获取真实客户端
|
String |
getTempUrl(String bucket,
String key,
Duration duration) |
org.noear.solon.core.handle.Result<Object> |
put(String bucket,
String key,
org.noear.solon.cloud.model.Media media) |
public CloudFileServiceFastDFSImpl(org.noear.solon.core.AppContext appContext,
org.noear.solon.cloud.CloudProps cloudProps)
public org.csource.fastdfs.StorageClient 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
getTempUrl in interface org.noear.solon.cloud.service.CloudFileServiceorg.noear.solon.cloud.exception.CloudFileExceptionpublic 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<Object> 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.CloudFileExceptionCopyright © 2025. All rights reserved.