Implements GCS backend for unified object storage layer with full upload/download flow via signed URLs.#224
Open
nathan-club wants to merge 6 commits intoopenimsdk:mainfrom
Open
Implements GCS backend for unified object storage layer with full upload/download flow via signed URLs.#224nathan-club wants to merge 6 commits intoopenimsdk:mainfrom
nathan-club wants to merge 6 commits intoopenimsdk:mainfrom
Conversation
- 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
…ryEscape函数进行编码,防止特殊字符导致的问题 - 在连接 MongoDB 时添加直接连接选项 (SetDirect(true)),提高连接稳定性 - 在连接过程中增加日志输出,方便调试和监控
…goDB 模式的支持 - 如果配置的模式不是现有的有效模式,将返回一个新的错误 - 这提高了系统的稳定性,避免了使用默认模式导致的潜在问题
- 移除了对 log 包的依赖- 简化了 MongoDB 客户端选项构建过程 - 删除了副本集模式的相关配置检查和处理逻辑 -优化了连接重试机制的实现方式- 统一了不同模式下的连接参数设置方法 - 减少了不必要的错误包装和日志记录调用
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(gcp): implement Google Cloud Storage support for s3.Interface
Tested: go test -v ./gcp with local GCP credentials and bucket