Astarte.DataAccess.Interface (astarte_data_access v1.1.1) View Source

Link to this section Summary

Link to this section Functions

Link to this function

check_if_interface_exists(realm, interface_name, major_version)

View Source

Specs

check_if_interface_exists(String.t(), String.t(), non_neg_integer()) ::
  :ok | {:error, atom()}
Link to this function

do_retrieve_interface_row(conn, realm_name, interface_name, major_version, opts)

View Source
Link to this function

fetch_interface_descriptor(realm_name, interface_name, major_version)

View Source

Specs

fetch_interface_descriptor(String.t(), String.t(), non_neg_integer()) ::
  {:ok,
   %Astarte.Core.InterfaceDescriptor{
     aggregation: term(),
     automaton: term(),
     interface_id: term(),
     major_version: term(),
     minor_version: term(),
     name: term(),
     ownership: term(),
     storage: term(),
     storage_type: term(),
     type: term()
   }}
  | {:error, atom()}
Link to this function

retrieve_interface_row(realm, interface_name, major_version, opts \\ [])

View Source

Specs

retrieve_interface_row(String.t(), String.t(), integer(), keyword()) ::
  {:ok, keyword()} | {:error, atom()}