add cloudflare r2 storage (#1835)

This commit is contained in:
LixvYang
2024-07-30 15:31:23 +08:00
committed by GitHub
parent 5a5b86aeec
commit 2d0b9ecac0
5 changed files with 113 additions and 6 deletions

View File

@@ -31,6 +31,8 @@ func NewOss() OSS {
return HuaWeiObs
case "aws-s3":
return &AwsS3{}
case "cloudflare-r2":
return &CloudflareR2{}
default:
return &Local{}
}