{"id":15902817,"url":"https://github.com/erikh/go-ztone","last_synced_at":"2025-10-07T06:33:40.941Z","repository":{"id":57597523,"uuid":"349973682","full_name":"erikh/go-ztone","owner":"erikh","description":"ZeroTier One local client library for Golang","archived":false,"fork":false,"pushed_at":"2021-03-23T11:24:36.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-08T10:42:38.932Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/erikh.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}},"created_at":"2021-03-21T11:09:29.000Z","updated_at":"2022-06-23T04:10:24.000Z","dependencies_parsed_at":"2022-08-28T10:21:07.387Z","dependency_job_id":null,"html_url":"https://github.com/erikh/go-ztone","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fgo-ztone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fgo-ztone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fgo-ztone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikh%2Fgo-ztone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikh","download_url":"https://codeload.github.com/erikh/go-ztone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246884767,"owners_count":20849554,"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":[],"created_at":"2024-10-06T12:00:19.085Z","updated_at":"2025-10-07T06:33:40.835Z","avatar_url":"https://github.com/erikh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ztone: a client to the ZeroTier One local configuration socket\n\n`go-ztone` is for using against your local [ZeroTier One](https://www.zerotier.com) instance. You must use the \"secret authtoken\" described in [this document](https://github.com/zerotier/zerotierone#running). For the examples specifically, the convention is to use `ZEROTIER_ONE_TOKEN` on the commandline to assign it into the environment.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\tone \"github.com/erikh/go-ztone\"\n)\n\nfunc main() {\n\tc := one.NewClient(os.Getenv(\"ZEROTIER_ONE_TOKEN\"))\n\tnetworks, err := c.Networks()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tpeers, err := c.Peers()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfmt.Println(\"Networks w/ MAC:\")\n\tfor _, network := range networks {\n\t\tfmt.Println(network.ID, network.MAC)\n\t}\n\n\tfmt.Println(\"Peers w/ Latency:\")\n\tfor _, peer := range peers {\n\t\tfmt.Println(peer.Address, peer.Latency)\n\t}\n}\n```\n\n## Functionality\n\n`ztone` has a few basic functions, most of them [listed here](https://github.com/zerotier/ZeroTierOne/blob/master/service/README.md#network-virtualization-service-api), as well as on the [GoDoc](https://pkg.go.dev/github.com/erikh/go-ztone).\n\n## Example Code\n\nYou can see examples in the `examples/` directory. There are two:\n\n- `list-things`: lists a few different properties and takes no arguments.\n- `query-things`: takes a network ID and returns a few properties about it.\n\n# Author\n\nErik Hollensbe \u003cgithub@hollensbe.org\u003e\n\n# License\n\nBSD 3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fgo-ztone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikh%2Fgo-ztone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikh%2Fgo-ztone/lists"}