Astarte.Flow.Blocks.DynamicVirtualDevicePool.CredentialsStorage behaviour (astarte_flow v0.1.0)

Link to this section Summary

Link to this section Callbacks

Link to this callback

fetch_credentials_secret(realm, device_id)

@callback fetch_credentials_secret(realm :: String.t(), device_id :: String.t()) ::
  {:ok, credentials_secret :: String.t()} | :error
Link to this callback

store_credentials_secret(realm, device_id, credentials_secret)

@callback store_credentials_secret(
  realm :: String.t(),
  device_id :: String.t(),
  credentials_secret :: String.t()
) :: :ok | {:error, reason :: any()}