feat(wiki-gen): implement P0 storage connectors (Local + Git)#28
Merged
feat(wiki-gen): implement P0 storage connectors (Local + Git)#28
Conversation
Storage Connectors Design: - 17 connectors planned (P0: 4, P1: 6, P2: 7) - Excluded: Container storage, special protocols - Focus: Enterprise practical scenarios - Timeline: 6 weeks for full implementation P0 (Week 1): - LocalConnector (existing) - GitConnector (GitHub/GitLab/Gitee) - S3Connector (AWS/MinIO/Wasabi) - WebDavConnector (坚果云/Nextcloud) P1 (Week 2-3): - OSS/COS/OBS (阿里云/腾讯云/华为云) - SMB/NFS/SFTP (企业文件共享) P2 (Week 4-6): - Cloud drives (OneDrive/Google Drive/Dropbox) - Cloud storage (GCS/Azure Blob) - Chinese drives (百度网盘/阿里云盘) Updated: - docs/state.json: phase = Storage Connectors - WORK_LOG.md: added current task
Storage Connector System:
- Define StorageConnector trait with 7 methods
- FileEntry and FileMetadata structs
- Async/await support
Implemented Connectors:
1. LocalConnector - Local filesystem access
- Tokio async file operations
- Path resolution
- Metadata support
2. GitConnector - Git repository cloning
- git2 integration
- Token authentication
- SSH key authentication
- Clone to temp directory
- Support for GitHub/GitLab/Gitee/etc
Error Handling:
- Added Storage error variant
- Proper error propagation
- JoinError handling for async tasks
Tests:
- LocalConnector unit test (passing)
- GitConnector integration test (ignored, requires network)
Dependencies:
- git2 = "0.19"
- uuid = { version = "1", features = ["v4"] }
Next: S3Connector and WebDavConnector (P0 remaining)
Progress Update: - P0 Phase 1 complete: LocalConnector + GitConnector - 347 lines of code implemented - Tests passing - PR #28 created Updated: - docs/state.json: progress 12% - WORK_LOG.md: added completed items - docs/STORAGE_CONNECTORS.md: marked Local + Git as implemented Next: S3Connector + WebDavConnector
This was referenced Feb 21, 2026
5 tasks
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.
📦 Storage Connectors - P0 Phase 1
✅ Implemented (2/4)
1. StorageConnector Trait
2. LocalConnector
3. GitConnector
📝 Code Stats
🔧 Technical Highlights
📋 Remaining (P0)
🎯 Progress
🧪 Testing
cargo test -p memoryos-wiki-gen --lib storage📚 Related