Ryan Wang
52cfa53d7c
docs: update usage documentation of readme file ( #61 )
...
更新 README 中下载和安装插件的说明。
/kind documentation
```release-note
None
```
2023-08-12 09:02:10 +00:00
John Niang
c109bbd61f
Fallback to default handler for backward compatibility ( #57 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
See https://github.com/halo-sigs/plugin-s3/issues/56 for more.
This PR skips permalink resolution while the object key is missing. So that the default handler will resolve permalink from annotation `storage.halo.run/external-link`
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-sigs/plugin-s3/issues/56
#### Does this PR introduce a user-facing change?
```release-note
解决导入 Halo 1.x 附件后出现“Cannot obtain object key from attachment attachment-xyz”的问题
```
1.4.1
2023-08-01 10:14:54 +00:00
longjuan
2320800907
chore: bump version to 1.4.1 ( #53 )
...
```release-note
None
```
2023-07-21 15:58:13 +00:00
John Niang
00537c164c
Ensure non-trailing parts are of equal size ( #50 )
...
#### What type of PR is this?
/kind improvement
#### What this PR does / why we need it:
Reshape the DataBuffers into parts of the same size (5MB) except for the last part.
#### Which issue(s) this PR fixes:
Fixes https://github.com/halo-sigs/plugin-s3/issues/49
#### Does this PR introduce a user-facing change?
```release-note
保证分片上传时片段大小一致
```
2023-07-05 05:10:11 +00:00
Kevin Zhang
8be39b9898
Impove the readme ( #46 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/43
桶填写错误:

补充桶填写说明:
<img width="895" alt="image" src="https://github.com/halo-sigs/plugin-s3/assets/34374831/d8d2e288-e4e2-4788-95a6-b86d91f4a1ec ">
/kind feature
```release-note
完善README.md
```
2023-07-01 08:14:12 +00:00
longjuan
022ecea94f
Fix url space error ( #41 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/40

```release-note
None
```
1.4.0
2023-06-01 08:23:13 +00:00
John Niang
b3bdd02e08
Fix incorrect setting on TTL of share URL ( #39 )
...
Share URL mechanism was provided in https://github.com/halo-sigs/plugin-s3/pull/35 , and I set the TTL of the URL with 5 mins incorrectly.
```release-note
None
```
2023-06-01 08:13:16 +00:00
longjuan
5a95b4ced1
Permalink Adaptation Path Style ( #38 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/37
```release-note
永久链接根据访问风格进行拼接
```
使用Path Style的策略
修改前:

修改后:

2023-05-12 16:52:27 +00:00
John Niang
88490bb80f
Support to get shared URL and permalink of attachment in handler ( #35 )
...
On the Halo side, PR https://github.com/halo-dev/halo/pull/3740 has already added two new methods (`getSharedURL` and `getPermalink`) into AttachmentHandler. Now It's time to implement these two methods so that users can correctly and easily use these two methods.
This PR mainly implements [new AttachmentHandler](11a5807682/api/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentHandler.java
). At the same time, I also refactored the build script for a better development experience.
Please note that, those changes might not influence compatibility with Halo 2.0.0. You can have test against Halo 2.0.0 manually.
/kind feature
```release-note
支持获取分享链接和永久链接
```
2023-04-21 12:33:40 +00:00
John Niang
5e9b9f803b
Use S3Client instead of S3AsyncClient to avoid waiting two seconds for closing ( #30 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/23
```release-note
修复文件上传慢的问题
```
2023-04-06 08:06:15 +00:00
longjuan
c635ebede8
perf: auto rename attachment if it exists ( #22 )
...
Fixes https://github.com/halo-dev/halo/issues/3337
不更新依赖了,直接复制了FileNameUtils
在有image.png的情况下再同时粘贴两张截图,期望两张都能被上传且被自动重命名。


```release-note
文件存在时自动重命名
```
2023-02-25 02:38:14 +00:00
miaodi
459cc1cf94
add oracle cloud configuration guide in README ( #20 )
...
增加oracle cloud的配置,实测可以上传。
官方文档地址:https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/s3compatibleapi.htm
`Path Style`和`Virtual Hosted Style`均可以配置,并测试成功。
推荐使用`Virtual Hosted Style`方式:

entrypoint: compat.objectstorage.{region}.oraclecloud.com
将`{region}`替换为上图中`区域`的值
绑定域名留空

`Access Key`和`Access Secret` 在用户设置里面生成`客户秘钥`
```release-note
None
```
2023-02-02 14:20:10 +00:00
SanqianQVQ
780258ffc1
Update README.md ( #18 )
...
Added Cloudflare info and use of bright red ❌ for readability.
None
2023-01-31 10:58:09 +00:00
longjuan
c9f13d4b5f
chore: bump version and correct license ( #15 )
...
perf: Use async client and multipart upload to avoid out of memory by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/7
feat: add access style options to support minio binding domain names by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/13
feat: check the file already exists before uploading by @longjuan in https://github.com/halo-sigs/plugin-s3/pull/11
```release-note
None
```
1.3.0
2023-01-31 02:22:09 +00:00
longjuan
72af0fcdac
chore: add configuration guide in README ( #14 )
...
因为增加了访问风格选项,导致配置比较难理解,因此增加配置指南
```release-note
None
```
2023-01-30 02:04:11 +00:00
longjuan
21b752dd25
feat: check the file already exists before uploading ( #11 )
...
Fixes https://github.com/halo-dev/halo/issues/2945
```release-note
Add file check with the same name when uploading
```
我这里使用了ConcurrentHashMap避免**同时**上传两个同名文件导致文件覆盖问题,在本地存储策略中是由操作系统保证的
不知道这样是不是一个好方法
S3AsyncClient中没有`doesObjectExist`类似的方法,官方的文档也让用`headObject`捕获异常的办法来判断文件是否存在,详见https://github.com/aws/aws-sdk-java-v2/blob/master/docs/LaunchChangelog.md 中搜索`doesObjectExist`
2023-01-28 06:40:10 +00:00
longjuan
b5c2c50654
feat: add access style options to support minio binding domain names ( #13 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/12


```release-note
add access style options to support minio binding domain names
```
⚠️ 在发布新版本前在README里增加兼容访问风格相关说明

2023-01-28 03:40:09 +00:00
longjuan
1158ea7ae8
perf: Use async client and multipart upload to avoid out of memory ( #7 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/6
```release-note
Use async client and multipart upload to avoid out of memory
```
2023-01-09 09:48:39 +00:00
longjuan
11087a9915
fix: EndpointProtocol setting item does not take effect ( #10 )
...
Fixes https://github.com/halo-sigs/plugin-s3/issues/9
```release-note
fix endpointProtocol setting item does not take effect
```
1.2.1
2023-01-07 09:56:36 +00:00
longjuan
bf3b11b842
Bump version to 1.2.0 ( #3 )
...
```release-note
None
```
1.2.0
2022-12-23 04:00:29 +00:00
Ryan Wang
3724a68b87
chore: rename to plugin-s3 ( #1 )
2022-12-23 11:30:43 +08:00
Ryan Wang
0f531daf2d
Create OWNERS ( #2 )
2022-12-23 11:05:16 +08:00
longjuan
973bc1b3de
Merge pull request #7 from longjuan/dev
...
upgrade sdk version
2022-12-21 22:46:50 -06:00
longjuan
c2e747ab15
extraction public tool
2022-12-21 16:04:27 +08:00
longjuan
fb06ea7172
upgrade aws-java-sdk to 1.12.360
2022-12-20 17:39:31 +08:00
longjuan
12740bfa70
Merge pull request #6 from longjuan/dev
...
fix MediaType is always application/octet and delete the unimplemented function of restriction extensions
2022-12-19 07:54:20 -06:00
longjuan
5da0fae2b4
Adjust Formatting
2022-12-19 21:51:42 +08:00
longjuan
79c94a29a9
Upgrade version to 1.1.1
2022-12-19 21:41:08 +08:00
longjuan
e9e9b327fe
add endpoint protocol help tips
2022-12-19 21:40:55 +08:00
longjuan
dc49669b71
delete the unimplemented function of restriction extensions
2022-12-19 21:30:52 +08:00
longjuan
c7e4c91932
fix: MediaType is always application/octet stream
2022-12-19 21:26:47 +08:00
longjuan
32e748c3d3
Merge pull request #5 from longjuan/dev-update-README
...
Update README.md
2022-12-17 18:01:57 +08:00
longjuan
732be2f6ed
Update README.md
2022-12-17 18:01:22 +08:00
longjuan
a82b75201a
Merge pull request #4 from longjuan/dev
...
add Endpoint access protocol selection
2022-12-17 11:27:10 +08:00
longjuan
301632bf88
Upgrade version to 1.1.0
2022-12-17 11:18:15 +08:00
longjuan
1b35103c85
add Endpoint access protocol selection
2022-12-17 11:12:20 +08:00
longjuan
69c48810c7
handle the case of domain=null
2022-12-17 00:19:32 +08:00
longjuan
63766d4983
Merge pull request #3 from longjuan/dev-update-workflow
...
Update workflow.yaml
2022-12-16 14:14:06 +08:00
longjuan
bb4d50c1b4
Update workflow.yaml
2022-12-16 14:13:08 +08:00
longjuan
4182a30662
Merge pull request #2 from longjuan/dev-update-workflow
...
Update workflow.yaml
2022-12-16 14:09:05 +08:00
longjuan
6847fa2e68
Update workflow.yaml
2022-12-16 14:08:43 +08:00
longjuan
95c58c6081
Merge pull request #1 from longjuan/dev
...
Complete S3 protocol adaptation
2022-12-16 14:02:16 +08:00
longjuan
27663f757e
update README.md
2022-12-16 13:58:52 +08:00
longjuan
1258436608
Change policy display name
2022-12-16 13:43:58 +08:00
longjuan
2808db4876
Complete S3 protocol adaptation
2022-12-16 13:36:18 +08:00
guqing
535643d14e
refactor; policy template initialize
2022-12-01 13:57:41 +08:00
guqing
9732cd5f82
refactor: adapt to halo 2.0
2022-12-01 13:48:12 +08:00
Ryan Wang
781a010a8f
refactor: plugin author field
2022-11-30 22:41:02 +08:00
Ryan Wang
fccf4b84c2
chore: release 1.0.0-alpha.2
2022-10-26 17:00:38 +08:00
Ryan Wang
73b5f0c1f8
chore: bump dependencies
2022-10-26 14:27:13 +08:00