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

Link to this section Summary

Link to this section Functions

Link to this function

check_if_interface_exists(client, interface_name, major_version)

View Source

Specs

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

fetch_interface_descriptor(client, interface_name, major_version)

View Source

Specs

fetch_interface_descriptor(:cqerl.client(), 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(client, interface, major_version)

View Source

Specs

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