{"id":21258831,"url":"https://github.com/jamesponddotco/bunnystorage-go","last_synced_at":"2025-07-11T02:32:56.345Z","repository":{"id":155626390,"uuid":"630994317","full_name":"jamesponddotco/bunnystorage-go","owner":"jamesponddotco","description":"[READ-ONLY]  Unofficial Go client for Bunny.net's edge storage API.","archived":false,"fork":false,"pushed_at":"2024-01-25T00:27:13.000Z","size":266,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2024-08-01T10:20:51.566Z","etag":null,"topics":["api-client","api-client-go","bunny","bunnycdn","bunnynet","bunnystorage","go"],"latest_commit_sha":null,"homepage":"https://sr.ht/~jamesponddotco/bunnystorage-go/","language":"Go","has_issues":false,"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/jamesponddotco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-21T16:40:02.000Z","updated_at":"2024-04-16T20:35:59.000Z","dependencies_parsed_at":"2024-01-24T23:41:17.099Z","dependency_job_id":"5ef94853-3f7d-4563-9509-c94dbb0d8498","html_url":"https://github.com/jamesponddotco/bunnystorage-go","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Fbunnystorage-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Fbunnystorage-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Fbunnystorage-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamesponddotco%2Fbunnystorage-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamesponddotco","download_url":"https://codeload.github.com/jamesponddotco/bunnystorage-go/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225669488,"owners_count":17505387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-client","api-client-go","bunny","bunnycdn","bunnynet","bunnystorage","go"],"created_at":"2024-11-21T04:11:03.585Z","updated_at":"2024-11-21T04:11:04.231Z","avatar_url":"https://github.com/jamesponddotco.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bunnystorage-go\n\n[![Go Documentation](https://godocs.io/git.sr.ht/~jamesponddotco/bunnystorage-go?status.svg)](https://godocs.io/git.sr.ht/~jamesponddotco/bunnystorage-go)\n[![Go Report Card](https://goreportcard.com/badge/git.sr.ht/~jamesponddotco/bunnystorage-go)](https://goreportcard.com/report/git.sr.ht/~jamesponddotco/bunnystorage-go)\n[![builds.sr.ht status](https://builds.sr.ht/~jamesponddotco/bunnystorage-go.svg)](https://builds.sr.ht/~jamesponddotco/bunnystorage-go?)\n\nPackage `bunnystorage` is a simple and easy-to-use package for\ninteracting with the [Bunny.net Edge Storage\nAPI](https://docs.bunny.net/reference/storage-api). It provides a\nconvenient way to manage files in your storage zones.\n\n## Installation\n\nTo install `bunnystorage`, run:\n\n```console\ngo get git.sr.ht/~jamesponddotco/bunnystorage-go\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\t\"os\"\n\n\t\"git.sr.ht/~jamesponddotco/bunnystorage-go\"\n)\n\nfunc main() {\n\treadOnlyKey, ok := os.LookupEnv(\"BUNNYNET_READ_API_KEY\")\n\tif !ok {\n\t\tlog.Fatal(\"missing env var: BUNNYNET_READ_API_KEY\")\n\t}\n\n\treadWriteKey, ok := os.LookupEnv(\"BUNNYNET_WRITE_API_KEY\")\n\tif !ok {\n\t\tlog.Fatal(\"missing env var: BUNNYNET_WRITE_API_KEY\")\n\t}\n\n\t// Create new Config to be initialize a Client.\n\tcfg := \u0026bunnystorage.Config{\n\t\tStorageZone: \"my-storage-zone\",\n\t\tKey:         readWriteKey,\n\t\tReadOnlyKey: readOnlyKey,\n\t\tEndpoint:    bunnystorage.EndpointFalkenstein,\n\t}\n\n\t// Create a new Client instance with the given Config.\n\tclient, err := bunnystorage.NewClient(cfg)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// List files in the storage zone.\n\tfiles, _, err := client.List(context.Background(), \"/\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfor _, file := range files {\n\t\tlog.Printf(\"File: %s, Size: %d\\n\", file.ObjectName, file.Length)\n\t}\n}\n```\n\nFor more examples and usage details, please [check the Go reference\ndocumentation](https://godocs.io/git.sr.ht/~jamesponddotco/bunnystorage-go).\n\n## Contributing\n\nAnyone can help make `bunnystorage` better. Check out [the contribution\nguidelines](https://git.sr.ht/~jamesponddotco/bunnystorage-go/tree/trunk/item/CONTRIBUTING.md)\nfor more information.\n\n## Resources\n\nThe following resources are available:\n\n- [Package documentation](https://godocs.io/git.sr.ht/~jamesponddotco/bunnystorage-go).\n- [Support and general discussions](https://lists.sr.ht/~jamesponddotco/bunnystorage-discuss).\n- [Patches and development related questions](https://lists.sr.ht/~jamesponddotco/bunnystorage-devel).\n- [Instructions on how to prepare patches](https://git-send-email.io/).\n- [Feature requests and bug reports](https://todo.sr.ht/~jamesponddotco/bunnystorage).\n\n---\n\nReleased under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesponddotco%2Fbunnystorage-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamesponddotco%2Fbunnystorage-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamesponddotco%2Fbunnystorage-go/lists"}