{"id":25246570,"url":"https://github.com/yaon-c2h8n2/go-glusterfs","last_synced_at":"2025-04-05T21:27:22.078Z","repository":{"id":241386889,"uuid":"802981565","full_name":"Yaon-C2H8N2/go-glusterfs","owner":"Yaon-C2H8N2","description":"A fast glusterfs-server CLI wrapper for Go.","archived":false,"fork":false,"pushed_at":"2024-06-24T19:53:20.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-11T11:28:45.131Z","etag":null,"topics":["glusterfs","go","wrapper-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yaon-C2H8N2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-05-19T19:25:24.000Z","updated_at":"2024-08-04T18:26:11.333Z","dependencies_parsed_at":"2024-05-28T04:34:02.004Z","dependency_job_id":"506523d6-c383-4a6a-9c50-b5989bfee56b","html_url":"https://github.com/Yaon-C2H8N2/go-glusterfs","commit_stats":null,"previous_names":["yaon-c2h8n2/go-glusterfs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaon-C2H8N2%2Fgo-glusterfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaon-C2H8N2%2Fgo-glusterfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaon-C2H8N2%2Fgo-glusterfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yaon-C2H8N2%2Fgo-glusterfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yaon-C2H8N2","download_url":"https://codeload.github.com/Yaon-C2H8N2/go-glusterfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247404171,"owners_count":20933590,"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":["glusterfs","go","wrapper-api"],"created_at":"2025-02-12T02:48:27.566Z","updated_at":"2025-04-05T21:27:22.046Z","avatar_url":"https://github.com/Yaon-C2H8N2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-glusterfs\n\nA Go library for deploying and managing GlusterFS clusters. Implemented as a wrapper around the GlusterFS CLI.\n\n## Disclaimer\n\nThis project is in early stages of development. It's a simple side-project I'm doing on my own to manage my\nGlusterFS deployed on my homelab with a WebUI. It is not recommended for production use. Any feedback and contributions are more than\nwelcome.\n\n## Features\n\n- [x] Probe GlusterFS nodes\n- [x] Create and delete volumes\n- [x] Start and stop volumes\n- [x] Event listener for volume and peer changes\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"go-glusterfs.yaon.fr/pkg/brick\"\n\t\"go-glusterfs.yaon.fr/pkg/peer\"\n\t\"go-glusterfs.yaon.fr/pkg/volume\"\n)\n\nfunc main() {\n\t//Probing nodes 2 and 3\n\thostnameList := []string{\"node2\", \"node3\"}\n\tfor _, hostname := range hostnameList {\n\t\terr := peer.PeerProbe(hostname)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t}\n\n\t//Creating bricks for each nodes in the pool\n\tpeers, err := peer.ListPeers()\n\tvar bricks []brick.Brick\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfor _, p := range peers {\n\t\tbricks = append(bricks, brick.Brick{\n\t\t\tPeer: p,\n\t\t\tPath: \"/data/brick1\",\n\t\t})\n\t}\n\t\n\t//Creating a volume with the bricks\n\tv, err := volume.CreateVolume(\"test-volume\", bricks)\n\tif err != nil {\n        panic(err)\n    }\n\terr = v.Start()\n\tif err != nil {\n        panic(err)\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaon-c2h8n2%2Fgo-glusterfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaon-c2h8n2%2Fgo-glusterfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaon-c2h8n2%2Fgo-glusterfs/lists"}