{"id":25485022,"url":"https://github.com/hibare/headscale-client-go","last_synced_at":"2025-11-07T10:30:32.137Z","repository":{"id":261114237,"uuid":"883305579","full_name":"hibare/headscale-client-go","owner":"hibare","description":"A client implementation for the Headscale HTTP API ","archived":false,"fork":false,"pushed_at":"2025-02-04T13:20:37.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T14:27:06.462Z","etag":null,"topics":["client","golang","headscale"],"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/hibare.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}},"created_at":"2024-11-04T18:24:44.000Z","updated_at":"2025-02-04T13:20:40.000Z","dependencies_parsed_at":"2024-12-13T12:23:25.746Z","dependency_job_id":"877809c0-44ed-487a-974a-4ddc4d82bb52","html_url":"https://github.com/hibare/headscale-client-go","commit_stats":null,"previous_names":["hibare/headscale-client-go"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibare%2Fheadscale-client-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibare%2Fheadscale-client-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibare%2Fheadscale-client-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hibare%2Fheadscale-client-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hibare","download_url":"https://codeload.github.com/hibare/headscale-client-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239527627,"owners_count":19653786,"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":["client","golang","headscale"],"created_at":"2025-02-18T18:34:27.236Z","updated_at":"2025-11-07T10:30:32.099Z","avatar_url":"https://github.com/hibare.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Headscale Client Go\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/tailscale/tailscale-client-go/v2.svg)](https://pkg.go.dev/github.com/hibare/headscale-client-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hibare/headscale-client-go)](https://goreportcard.com/report/github.com/hibare/headscale-client-go)\n\nA client implementation for the [Headscale](https://headscale.net) HTTP API.\n\n## Example (Using API Key)\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log/slog\"\n\t\"os\"\n\n\thsClient \"github.com/hibare/headscale-client-go\"\n)\n\nfunc main() {\n\tslog.SetLogLoggerLevel(slog.LevelDebug) // Optional\n\n\tserverUrl := os.Getenv(\"HS_SERVER_URL\")\n\tapiToken := os.Getenv(\"HS_API_TOKEN\")\n\n\tclient, err := hsClient.NewClient(serverUrl, apiToken, hsClient.HeadscaleClientOptions{})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tnodes, err := client.Nodes().List(context.Background())\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor _, node := range nodes.Nodes {\n\t\tfmt.Printf(\"Node: %s\\n\", node.Name)\n\t}\n\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhibare%2Fheadscale-client-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhibare%2Fheadscale-client-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhibare%2Fheadscale-client-go/lists"}