{"id":22426348,"url":"https://github.com/wolveix/fleet-go","last_synced_at":"2025-03-27T06:17:55.145Z","repository":{"id":266439351,"uuid":"897557006","full_name":"wolveix/fleet-go","owner":"wolveix","description":"A library to interface with FleetDM's API","archived":false,"fork":false,"pushed_at":"2024-12-04T16:39:58.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T11:25:46.774Z","etag":null,"topics":["api","fleet","fleetdm","library","sdk-go"],"latest_commit_sha":null,"homepage":"https://fleetdm.com","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/wolveix.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-12-02T20:46:53.000Z","updated_at":"2024-12-04T16:40:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"4261e148-ce5e-4210-a9d7-bf2c6c5347c6","html_url":"https://github.com/wolveix/fleet-go","commit_stats":null,"previous_names":["wolveix/fleet-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolveix%2Ffleet-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolveix%2Ffleet-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolveix%2Ffleet-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolveix%2Ffleet-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolveix","download_url":"https://codeload.github.com/wolveix/fleet-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791955,"owners_count":20672671,"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":["api","fleet","fleetdm","library","sdk-go"],"created_at":"2024-12-05T19:17:45.337Z","updated_at":"2025-03-27T06:17:55.139Z","avatar_url":"https://github.com/wolveix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fleet Go SDK\n\nGo SDK for interacting with the [Fleet](https://fleetdm.com/) API.\n\n_Note: this is incomplete, as I only implemented what I needed (+ low-hanging fruit). PRs welcome!._\n\n## Usage\n\nYou can retrieve your API key via: https://fleetdm.com/docs/rest-api/rest-api#retrieve-your-api-token\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/wolveix/fleet-go\"\n)\n\nfunc main() {\n\tkey := \"your_api_key_here\"\n\tservice := fleet.New(\"https://your.fleet.domain\", key, 15*time.Second, false)\n\n\tuser, err := service.FindMe()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(user.Email)\n}\n```\n\n## Retrieve Hosts\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"log\"\n\t\"time\"\n\n\t\"github.com/wolveix/fleet-go\"\n)\n\nfunc main() {\n\tkey := \"your_api_key_here\"\n\tservice := fleet.New(\"https://your.fleet.domain\", key, 15*time.Second, false)\n\n\thosts, err := service.FindHosts()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t\n\tfor _, host := range hosts {\n\t\tfmt.Printf(\"Host details:\\n- Hostname: %s\\n- OS Version: %s\\n\\n\", host.Hostname, host.OSVersion)\n    }\n}\n```\n\n## License\n\nBSD licensed. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolveix%2Ffleet-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolveix%2Ffleet-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolveix%2Ffleet-go/lists"}