{"id":37118658,"url":"https://github.com/rovergulf/storage","last_synced_at":"2026-01-14T13:51:29.350Z","repository":{"id":265910050,"uuid":"814707583","full_name":"rovergulf/storage","owner":"rovergulf","description":"File system / Cloud storage Golang driver","archived":false,"fork":false,"pushed_at":"2025-08-15T17:49:33.000Z","size":59,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-30T22:35:45.731Z","etag":null,"topics":["cloud-storage-driver","file-storage-driver","fs","go","go-lib","otel-supported","s3"],"latest_commit_sha":null,"homepage":"","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/rovergulf.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":"2024-06-13T14:37:28.000Z","updated_at":"2025-08-15T17:49:00.000Z","dependencies_parsed_at":"2025-07-25T22:23:15.832Z","dependency_job_id":"5ddda506-4f51-48f0-94df-5828848033ee","html_url":"https://github.com/rovergulf/storage","commit_stats":null,"previous_names":["rovergulf/storage"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rovergulf/storage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rovergulf%2Fstorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rovergulf%2Fstorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rovergulf%2Fstorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rovergulf%2Fstorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rovergulf","download_url":"https://codeload.github.com/rovergulf/storage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rovergulf%2Fstorage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cloud-storage-driver","file-storage-driver","fs","go","go-lib","otel-supported","s3"],"created_at":"2026-01-14T13:51:28.761Z","updated_at":"2026-01-14T13:51:29.341Z","avatar_url":"https://github.com/rovergulf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/rovergulf/storage)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/rovergulf/storage/test?branch=main)\n\n# storage\n\nThis repository contains source code for file storage, \nsupporting local file storage and cloud remote ones.\n\n### Install module\n```shell\ngo get github.com/rovergulf/storage\n```\n\n### Example\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\n\t\"github.com/rovergulf/storage\"\n)\n\nfunc main() {\n    ctx := context.Background()\n\n    storagePath := \"/temp/my-storage\"\n\n    fs, err := storage.NewStorage(\n        storage.WithBackends(storage.LocalBackends),\n        storage.WithPrefix(storagePath),\n    )\n    if err != nil {\n        log.Fatal(err)\t\n    }\n\n    fileData := []byte(`{\"example\": \"hello world\"}`)\n    fileName := \"example.json\"\n\t\n    // check if file key already exists \n    if exists, _ := fs.Exists(ctx, fileName); exists {\n        log.Printf(\"'%s' already exists\", fileName)\n        return\n    }\n\t\n\t// upload data\n    uploadErr := fs.Put(ctx, fileName, fileData)\n    if uploadErr != nil {\n        log.Fatalf(\"Unable to upload to '%s': %s\", fileName, err)\n        // handle uploadErr\n    }\n}\n```\n\n### OpenTelemetry support\nThis package supports [OpenTelemetry](https://opentelemetry.io) tracer spans.   \nVisit [opentelemetry-go examples](https://github.com/open-telemetry/opentelemetry-go/tree/main/example) to install tracer provider and provide tracer as storage `storage.WithTracer` option\n```go\npackage main\n\nimport (\n\t...\n\t\n\t\"go.opentelemetry.io/otel\"\n\t\n\t\"github.com/rovergulf/storage\"\n)\n\nfunc main() {\n\ttracer := otel.Tracer(\"go-storage\")\n\t\n\tfs, err := storage.NewStorage(\n\t\t...,\n\t\tstorage.WithTracer(tracer),\n\t)\n\tif err != nil {\n\t\t// handle err\t\n\t}\n\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frovergulf%2Fstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frovergulf%2Fstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frovergulf%2Fstorage/lists"}