FleetApi.Etcd
Accesses the Fleet API via a URL discovered through etcd.
Summary↑
delete_unit(pid, unit_name) | Callback implementation for |
get_api_discovery(pid) | Callback implementation for |
get_node_url(pid) | Retrieves a Fleet node URL based on the information stored in etcd, using the etcd token specified when the GenServer was started |
get_unit(pid, unit_name) | Callback implementation for |
list_machines(pid) | Callback implementation for |
list_unit_states(pid, opts \\ []) | Callback implementation for |
list_units(pid) | Callback implementation for |
set_unit(pid, unit_name, unit) | Callback implementation for |
start_link(etcd_token) |
Functions
Callback implementation for FleetApi.delete_unit/2
.
Callback implementation for FleetApi.get_api_discovery/1
.
Specs:
- get_node_url(pid) :: String.t
Retrieves a Fleet node URL based on the information stored in etcd, using the etcd token specified when the GenServer was started.
Callback implementation for FleetApi.get_unit/2
.
Callback implementation for FleetApi.list_machines/1
.
Callback implementation for FleetApi.list_unit_states/2
.
Callback implementation for FleetApi.list_units/1
.
Callback implementation for FleetApi.set_unit/3
.