FleetApi.Unit
Defines a FleetApi.Unit struct, representing a service in a fleet cluster.
The following fields are public:
name- unique identifier of entity.options- list of UnitOption entities.desiredState- state the user wishes the unit to be in (“inactive”, “loaded”, or “launched”).currentState- state the unit is currently in (same possible values as desiredState).machineID- ID of machine to which the unit is scheduled.
Summary↑
| from_map(unit_map) |
Types ↑
t :: %FleetApi.Unit{currentState: term, desiredState: term, machineID: term, name: term, options: term}
Functions
Specs:
- from_map(%{String.t => any}) :: FleetApi.Unit.t