Skip to content

Conversation

@kites262
Copy link
Member

@kites262 kites262 commented Jun 29, 2025

支持阿里云OSS作为Storage后端

  • 驱动名称: oss
  • 参数定义:
参数名 示例 注释
accessid LTAI5t... 阿里云 Access Key Id
secret z5j... 阿里云 Access Key Secret
region cn-hangzhou 阿里云 OSS Bucket 所在地域
bucket test-registry-1101772061 阿里云 OSS Bucket 名称
rootdirectory /registry 所用 Bucket 的根目录
  • 测试环境变量:
环境变量名 示例 注释
OSS_STORAGE_ACCESS_KEY_ID LTAI5t... RAM用户/主账号 Access Key Id
OSS_STORAGE_ACCESS_KEY_SECRET z5j... RAM用户/主账号 Access Key
OSS_STORAGE_REGION cn-hangzhou OSS Bucket 所在地域
OSS_STORAGE_BUCKET test-registry-1101772061 OSS Bucket 名称
COS_STORAGE_ROOT_DIRECTORY test1 所用 Bucket 的根目录

测试时建议留空COS_STORAGE_ROOT_DIRECTORY, 使用oss_test.go自动生成的时间戳作为测试根目录

目录

  • oss.go: 驱动注册与初始化, DriverWriter具体实现
  • utils.go: 通用工具函数(keyToPath、pathToKey)
  • parser.go: 输入参数map校验与预处理

kites262 and others added 4 commits June 28, 2025 14:59
* feat(register): driver register & interface pass

* fix(info): typo

---------

Signed-off-by: kites262 <47177568+kites262@users.noreply.github.com>
* feat(driver): object APIs

* feat(test): driver suite
@kites262 kites262 requested a review from swpfY June 29, 2025 13:28
@kites262 kites262 self-assigned this Jun 29, 2025
@swpfY swpfY merged commit 4584d09 into SwanHubX:feature/oss-driver Jul 22, 2025
12 of 15 checks passed
@swpfY swpfY deleted the feature/oss-driver branch July 22, 2025 02:45
swpfY added a commit that referenced this pull request Sep 24, 2025
support oss driver

Co-authored-by: kites262 <47177568+kites262@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants