Astarte.Flow.Flows (astarte_flow v0.1.0)

The Flows context.

Link to this section Summary

Functions

Creates a flow.

Deletes a Flow.

Gets a single flow.

Returns the list of flows for a realm.

Link to this section Functions

Link to this function

create_flow(realm, attrs)

Creates a flow.

examples

Examples

iex> create_flow(%{field: value})
{:ok, %Flow{}}

iex> create_flow(%{field: bad_value})
{:error, ...}
Link to this function

delete_flow(realm, flow)

Deletes a Flow.

examples

Examples

iex> delete_flow(flow)
{:ok, %Flow{}}

iex> delete_flow(flow)
{:error, ...}
Link to this function

get_flow(realm, name)

Gets a single flow.

Returns {:error, :not_found} if the flow does not exist.

Link to this function

list_flows(realm)

Returns the list of flows for a realm.