{"id":38595057,"url":"https://github.com/messikiller/afero-oss","last_synced_at":"2026-01-17T08:27:07.099Z","repository":{"id":287144993,"uuid":"963742861","full_name":"messikiller/afero-oss","owner":"messikiller","description":"Alibaba Cloud OSS Implementation for Afero File System","archived":false,"fork":false,"pushed_at":"2025-07-24T05:46:52.000Z","size":64,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T09:01:25.435Z","etag":null,"topics":["afero","filesystem","filesystem-library","oss"],"latest_commit_sha":null,"homepage":"https://github.com/spf13/afero","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messikiller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T06:27:49.000Z","updated_at":"2025-07-24T05:42:12.000Z","dependencies_parsed_at":"2025-04-17T09:14:31.953Z","dependency_job_id":null,"html_url":"https://github.com/messikiller/afero-oss","commit_stats":null,"previous_names":["messikiller/afero-oss"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/messikiller/afero-oss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messikiller%2Fafero-oss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messikiller%2Fafero-oss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messikiller%2Fafero-oss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messikiller%2Fafero-oss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messikiller","download_url":"https://codeload.github.com/messikiller/afero-oss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messikiller%2Fafero-oss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["afero","filesystem","filesystem-library","oss"],"created_at":"2026-01-17T08:27:06.519Z","updated_at":"2026-01-17T08:27:07.091Z","avatar_url":"https://github.com/messikiller.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Afero-OSS: Alibaba Cloud OSS Implementation for Afero File System\n\n## Project Introduction\n\n\u003e Based on the project: [spf13/afero](https://github.com/spf13/afero)\n\n\u003e [中文文档](./README_CN.md)\n\nAfero-OSS is an implementation of Alibaba Cloud Object Storage Service (OSS) based on the Afero file system interface. It allows developers to operate Alibaba Cloud OSS as easily as using a local file system, providing a unified and flexible file storage solution.\n\n## Features\n\n- 🔄 Full compatibility with Afero file system interface\n- 🚀 Support for Alibaba Cloud OSS v2 SDK\n- 📂 Provides standard file and directory operations\n- 🔒 Concurrent safe design\n- 💾 Default memory preloading mechanism enabled to improve read and write performance\n\n## Installation\n\nInstall using Go modules:\n\n```bash\ngo get github.com/messikiller/afero-oss\n```\n\n## Quick Start\n\n```go\npackage main\n\nimport (\n    \"github.com/spf13/afero\"\n    \"github.com/messikiller/afero-oss\"\n)\n\nfunc main() {\n    // Create OSS file system instance\n    ossFs := ossfs.NewOssFs(\n        \"your-access-key-id\", \n        \"your-access-key-secret\", \n        \"your-region\", \n        \"your-bucket-name\",\n        //ossfs.OSSWithEndpoint(\"oss-cn-hangzhou-internal.aliyuncs.com\"),\n        //ossfs.OSSWithUseInternalEndpoint()\n        //Configure the OSS client using ossfs.OSSWithXXX(), or you can customize an OSSOptionFunc.\n    )\n\n    // Operate OSS like a local file system\n    file, err := ossFs.Create(\"example.txt\")\n    if err != nil {\n        panic(err)\n    }\n    defer file.Close()\n\n    file.WriteString(\"Hello, Afero-OSS!\")\n}\n```\n\n## Main Functionalities\n\n- File creation, reading, writing, and deletion\n- Directory management (creation, listing)\n- File metadata retrieval\n- File preloading and synchronization\n\n## Limitations\n\n- Does not support file system-specific operations like `Chmod`, `Chown`\n- Depends on Alibaba Cloud OSS service\n- Default memory preloading for file objects is not recommended for large files. Switch preloading file system objects based on usage:\n\n```go\nossFs := NewOssFs(...)\nossFs.WithPreloadFs(afero.NewBasePathFs(afero.NewOsFs(), \"/tmp\"))\n```\n\n## Contributing\n\nWelcome to submit Issues and Pull Requests!\n\n## License\n\nThis project is open-sourced under the MIT License.\n\n## Dependencies\n\n- Afero: File system abstraction interface\n- Alibaba Cloud OSS Go SDK v2","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessikiller%2Fafero-oss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessikiller%2Fafero-oss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessikiller%2Fafero-oss/lists"}