{"id":37135687,"url":"https://github.com/levelzerotechnology/directadmin-go","last_synced_at":"2026-01-14T15:49:13.607Z","repository":{"id":143199179,"uuid":"615053302","full_name":"levelzerotechnology/directadmin-go","owner":"levelzerotechnology","description":"A library to interface with a DirectAdmin installation's API","archived":false,"fork":false,"pushed_at":"2025-07-13T14:51:08.000Z","size":182,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T16:29:39.902Z","etag":null,"topics":["api","directadmin","library","sdk-go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/levelzerotechnology.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":"2023-03-16T21:23:02.000Z","updated_at":"2025-07-13T14:51:12.000Z","dependencies_parsed_at":"2024-03-25T21:28:46.126Z","dependency_job_id":"c5f9e7c7-8887-43c4-8664-0c7c57229553","html_url":"https://github.com/levelzerotechnology/directadmin-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/levelzerotechnology/directadmin-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levelzerotechnology%2Fdirectadmin-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levelzerotechnology%2Fdirectadmin-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levelzerotechnology%2Fdirectadmin-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levelzerotechnology%2Fdirectadmin-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levelzerotechnology","download_url":"https://codeload.github.com/levelzerotechnology/directadmin-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levelzerotechnology%2Fdirectadmin-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28425082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["api","directadmin","library","sdk-go"],"created_at":"2026-01-14T15:49:12.859Z","updated_at":"2026-01-14T15:49:13.597Z","avatar_url":"https://github.com/levelzerotechnology.png","language":"Go","readme":"# DirectAdmin Go SDK\n\nInterface with a DirectAdmin installation using Go.\n\nThis library supports both the legacy/default DirectAdmin API, and their new modern API still in active development.\n\n**Note: This is in an experimental state. While it's being used in production, the library is very likely to change (\nespecially in-line with DA's own changes). DA features are being added as needed on our end, but PRs are always welcome!\n**\n\n**If you wonder why something has been handled unusually, it's most likely a workaround required by one of DA's many \nquirks.**\n\n## Login as Admin / Reseller / User\n\nTo open a session as an admin/reseller/user, follow the following code block:\n\n```go\npackage main\n\nimport (\n\t\"time\"\n\n\t\"github.com/levelzerotechnology/directadmin-go\"\n)\n\nfunc main() {\n\tapi, err := directadmin.New(\"https://your.da.address:2222\", 5*time.Second)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tuserCtx, err := api.LoginAsUser(\"your_username\", \"some_password_or_key\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tusage, err := userCtx.GetMyUserUsage()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tuserCtx.User.Usage = *usage\n}\n\n```\n\nFrom here, you can call user functions via `userCtx`.\n\nFor example, if you wanted to print each of your databases to your terminal:\n\n```go\ndbs, err := userCtx.GetDatabases()\nif err != nil {\n    log.Fatalln(err)\n}\n\nfor _, db := range dbs {\n    fmt.Println(db.Name)\n}\n```\n\n## License\n\nBSD licensed. See the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevelzerotechnology%2Fdirectadmin-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevelzerotechnology%2Fdirectadmin-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevelzerotechnology%2Fdirectadmin-go/lists"}