Astarte.Flow.Flows.DETSStorage (astarte_flow v0.1.0)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Delete a flow from the dets table

Return a list of all saved Flows in the form {realm, %Flow{}}

Insert a flow into the dets table

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

delete_flow(realm, name)

@spec delete_flow(realm :: String.t(), name :: String.t()) ::
  :ok | {:error, reason :: term()}

Delete a flow from the dets table

Link to this function

get_all_flows()

@spec get_all_flows() :: [{realm :: String.t(), Astarte.Flow.Flows.Flow.t()}]

Return a list of all saved Flows in the form {realm, %Flow{}}

Link to this function

insert_flow(realm, flow)

@spec insert_flow(realm :: String.t(), flow :: Astarte.Flow.Flows.Flow.t()) ::
  :ok | {:error, reason :: term()}

Insert a flow into the dets table

Link to this function

start_link(args)