Astarte.Flow.Pipelines.DETSStorage (astarte_flow v0.1.0)
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Delete a pipeline from the dets table
Fetch a pipeline given its realm and its name
Insert a pipeline into the dets table
List the pipelines for a specific realm
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_pipeline(realm, name)
Delete a pipeline from the dets table
Link to this function
fetch_pipeline(realm, name)
@spec fetch_pipeline(realm :: String.t(), name :: String.t()) :: {:ok, Astarte.Flow.Pipelines.Pipeline.t()} | {:error, reason :: term()}
Fetch a pipeline given its realm and its name
Link to this function
insert_pipeline(realm, pipeline)
@spec insert_pipeline( realm :: String.t(), pipeline :: Astarte.Flow.Pipelines.Pipeline.t() ) :: :ok | {:error, reason :: term()}
Insert a pipeline into the dets table
Link to this function
list_pipelines(realm)
@spec list_pipelines(realm :: String.t()) :: [Astarte.Flow.Pipelines.Pipeline.t()]
List the pipelines for a specific realm
Link to this function