Skip to content

Conversation

nathan-club
Copy link

feat(gcp): implement Google Cloud Storage support for s3.Interface

  • Added GCS implementation conforming to s3.Interface
  • Supports Presigned PUT, GET (AccessURL), FormData upload
  • Simulates multipart upload via ComposeObject with UploadID
  • AuthSign returns signed URLs for each part
  • Fully compatible with existing s3-based interface (like AWS S3)
  • Added end-to-end tests: PresignedPut, AccessURL, FormData, StatObject, DeleteObject
  • Automatically extracts GoogleAccessID and PrivateKey from service account JSON
  • Avoids OAuth2 dependencies by using SignedURL for all critical operations

Tested: go test -v ./gcp with local GCP credentials and bucket

nathan77886 and others added 2 commits June 23, 2025 15:34
- Added GCS implementation conforming to s3.Interface
- Supports Presigned PUT, GET (AccessURL), FormData upload
- Simulates multipart upload via ComposeObject with UploadID
- AuthSign returns signed URLs for each part
- Fully compatible with existing s3-based interface (like AWS S3)
- Added end-to-end tests: PresignedPut, AccessURL, FormData, StatObject, DeleteObject
- Automatically extracts GoogleAccessID and PrivateKey from service account JSON
- Avoids OAuth2 dependencies by using SignedURL for all critical operations

Tested: go test -v ./gcp with local GCP credentials and bucket
…oad/download flow via signed URLs.

feat(gcp): implement Google Cloud Storage support for s3.Interface
nathan77886 and others added 3 commits July 9, 2025 11:51
…ryEscape函数进行编码,防止特殊字符导致的问题

- 在连接 MongoDB 时添加直接连接选项 (SetDirect(true)),提高连接稳定性
- 在连接过程中增加日志输出,方便调试和监控
…goDB 模式的支持

- 如果配置的模式不是现有的有效模式,将返回一个新的错误
- 这提高了系统的稳定性,避免了使用默认模式导致的潜在问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants