{"id":13507569,"url":"https://github.com/jordan0day/fleet-api","last_synced_at":"2026-02-20T00:31:47.567Z","repository":{"id":28800141,"uuid":"32323126","full_name":"jordan0day/fleet-api","owner":"jordan0day","description":"An Elixir API wrapper for the Fleet REST API","archived":false,"fork":false,"pushed_at":"2015-09-03T02:45:18.000Z","size":380,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-12T10:58:52.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/jordan0day.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":"2015-03-16T12:23:45.000Z","updated_at":"2023-11-06T11:01:32.000Z","dependencies_parsed_at":"2022-08-02T12:13:23.306Z","dependency_job_id":null,"html_url":"https://github.com/jordan0day/fleet-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jordan0day/fleet-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan0day%2Ffleet-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan0day%2Ffleet-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan0day%2Ffleet-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan0day%2Ffleet-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jordan0day","download_url":"https://codeload.github.com/jordan0day/fleet-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jordan0day%2Ffleet-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29637408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T22:32:43.237Z","status":"ssl_error","status_checked_at":"2026-02-19T22:32:38.330Z","response_time":117,"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":[],"created_at":"2024-08-01T02:00:36.321Z","updated_at":"2026-02-20T00:31:47.552Z","avatar_url":"https://github.com/jordan0day.png","language":"Elixir","funding_links":[],"categories":["Cloud Infrastructure and Management"],"sub_categories":[],"readme":"# FleetApi\n\nAn elixir wrapper for the [Fleet API](https://github.com/coreos/fleet/blob/master/Documentation/api-v1.md). Connect to the API running on one of your fleet cluster nodes using either a direct node URL or an [etcd](https://etcd.io) etcd token.\n\n[![Build Status](https://semaphoreci.com/api/v1/projects/d90076a2-33bc-458a-88e1-1a36cf82040a/375538/badge.png)](https://semaphoreci.com/jordanday/fleet-api) [![Hex pm](http://img.shields.io/hexpm/v/fleet_api.svg?style=flat)](https://hex.pm/packages/fleet_api)\n\n## Usage\n### etcd token\n\n*Note that this is a config value you can set to override the port used to connect to the Fleet REST API when using an etcd token.*\nIn your app's config, you can set\n\n```elixir\nconfig :fleet_api, :etcd\n  fix_port_number: true,\n  api_port: 4001\n```\nTo get the api to use the correct port, regardless of what might be stored in etcd.\n\n```elixir\n{:ok, pid} = FleetApi.Etcd.start_link(\"your etcd token\")\n{:ok, units} = FleetApi.Etcd.list_units(pid)\n\n[%FleetApi.Unit{currentState: \"launched\", desiredState: \"launched\",\n  machineID: \"820c30c0867844129d63f4409871ba39\", name: \"subgun-http.service\",\n  options: [%FleetApi.UnitOption{name: \"Description\", section: \"Unit\",\n    value: \"subgun\"},\n   %FleetApi.UnitOption{name: \"ExecStartPre\", section: \"Service\",\n    value: \"-/usr/bin/docker kill subgun-%i\"},\n   %FleetApi.UnitOption{name: \"ExecStartPre\", section: \"Service\",\n    value: \"-/usr/bin/docker rm subgun-%i\"}...]\n```\n\n### Direct node URL\n\n```elixir\n{:ok, pid} = FleetApi.Direct.start_link(\"http://your-node-host-or-ip:7002\")\n{:ok, units} = FleetApi.Direct.list_units(pid)\n\n[%FleetApi.Unit{currentState: \"launched\", desiredState: \"launched\",\n  machineID: \"820c30c0867844129d63f4409871ba39\", name: \"subgun-http.service\",\n  options: [%FleetApi.UnitOption{name: \"Description\", section: \"Unit\",\n    value: \"subgun\"},\n   %FleetApi.UnitOption{name: \"ExecStartPre\", section: \"Service\",\n    value: \"-/usr/bin/docker kill subgun-%i\"},\n   %FleetApi.UnitOption{name: \"ExecStartPre\", section: \"Service\",\n    value: \"-/usr/bin/docker rm subgun-%i\"}...]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordan0day%2Ffleet-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordan0day%2Ffleet-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordan0day%2Ffleet-api/lists"}