FleetApi.Etcd

Accesses the Fleet API via a URL discovered through etcd.

Source

Summary

delete_unit(pid, unit_name)

Callback implementation for FleetApi.delete_unit/2

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 FleetApi.get_unit/2

list_machines(pid)

Callback implementation for FleetApi.list_machines/1

list_unit_states(pid, opts \\ [])

Callback implementation for FleetApi.list_unit_states/2

list_units(pid)
set_unit(pid, unit_name, unit)

Callback implementation for FleetApi.set_unit/3

start_link(etcd_token)

Functions

delete_unit(pid, unit_name)

Callback implementation for FleetApi.delete_unit/2.

Source
get_node_url(pid)

Specs:

Retrieves a Fleet node URL based on the information stored in etcd, using the etcd token specified when the GenServer was started.

Source
get_unit(pid, unit_name)

Callback implementation for FleetApi.get_unit/2.

Source
list_machines(pid)

Callback implementation for FleetApi.list_machines/1.

Source
list_unit_states(pid, opts \\ [])

Callback implementation for FleetApi.list_unit_states/2.

Source
list_units(pid)
Source
set_unit(pid, unit_name, unit)

Callback implementation for FleetApi.set_unit/3.

Source
start_link(etcd_token)
Source