{"id":37120064,"url":"https://github.com/libdns/cloudns","last_synced_at":"2026-01-14T13:59:39.237Z","repository":{"id":274587173,"uuid":"923233781","full_name":"libdns/cloudns","owner":"libdns","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-11T18:11:21.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-11T19:06:24.507Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/libdns.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-01-27T21:31:28.000Z","updated_at":"2025-06-11T17:13:39.000Z","dependencies_parsed_at":"2025-01-28T07:51:48.282Z","dependency_job_id":"7f42ba6d-b67c-41e1-9ee2-3acdfc946028","html_url":"https://github.com/libdns/cloudns","commit_stats":null,"previous_names":["libdns/cloudns"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/libdns/cloudns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fcloudns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fcloudns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fcloudns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fcloudns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libdns","download_url":"https://codeload.github.com/libdns/cloudns/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libdns%2Fcloudns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422396,"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":[],"created_at":"2026-01-14T13:59:38.677Z","updated_at":"2026-01-14T13:59:39.231Z","avatar_url":"https://github.com/libdns.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ClouDNS for [`libdns`](https://github.com/libdns/libdns)\n\n[![Go Reference](https://pkg.go.dev/badge/test.svg)](https://pkg.go.dev/github.com/libdns/cloudns)\n\nThis package implements the [libdns interfaces](https://github.com/libdns/libdns) for ClouDNS, allowing you to manage\nDNS records.\n\n## Installation\n\nTo install this package, use `go get`:\n\n```sh\ngo get github.com/libdns/cloudns\n```\n\n## Usage\n\nHere is an example of how to use this package to manage DNS records:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/libdns/cloudns\"\n\t\"github.com/libdns/libdns\"\n\t\"time\"\n)\n\nfunc main() {\n\tprovider := \u0026cloudns.Provider{\n\t\tAuthId:       \"your_auth_id\",\n\t\tSubAuthId:    \"your_sub_auth_id\",\n\t\tAuthPassword: \"your_auth_password\",\n\t}\n\n\tctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)\n\tdefer cancel()\n\n\t// Get records\n\trecords, err := provider.GetRecords(ctx, \"example.com\")\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to get records: %s\\n\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Records: %+v\\n\", records)\n\n\t// Append a record\n\tnewRecord := libdns.Record{\n\t\tType:  \"TXT\",\n\t\tName:  \"test\",\n\t\tValue: \"test-value\",\n\t\tTTL:   300 * time.Second,\n\t}\n\taddedRecords, err := provider.AppendRecords(ctx, \"example.com\", []libdns.Record{newRecord})\n\tif err != nil {\n\t\tfmt.Printf(\"Failed to append record: %s\\n\", err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Added Records: %+v\\n\", addedRecords)\n}\n```\n\n## Configuration\n\nThe `Provider` struct has the following fields:\n\n- `AuthId` (string, optional): Your ClouDNS authentication ID.\n- `SubAuthId` (string, optional): Your ClouDNS sub-authentication ID.\n- `AuthPassword` (string): Your ClouDNS authentication password.\n\n## Testing\n\nTo run the tests, you need to set up your ClouDNS credentials and zone in the test file `provider_test.go`. The tests\nrequire a live ClouDNS account.\n\n```go\nvar (\nTAuthId = \"your_auth_id\"\nTSubAuthId = \"your_sub_auth_id\"\nTAuthPassword = \"your_auth_password\"\nTZone = \"example.com\"\n)\n```\n\nRun the tests using the following command:\n\n```sh\ngo test ./...\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fcloudns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibdns%2Fcloudns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibdns%2Fcloudns/lists"}