Astarte.Device.SimpleInterfaceProvider.fetch_interface

You're seeing just the function fetch_interface, go back to Astarte.Device.SimpleInterfaceProvider module for more information.
Link to this function

fetch_interface(name, state)

Specs

fetch_interface(
  name :: String.t(),
  state :: Astarte.Device.InterfaceProvider.state()
) ::
  {:ok,
   %Astarte.Core.Interface{
     aggregate: term(),
     aggregation: term(),
     description: term(),
     doc: term(),
     interface_id: term(),
     interface_name: term(),
     major_version: term(),
     mappings: term(),
     minor_version: term(),
     name: term(),
     ownership: term(),
     quality: term(),
     type: term(),
     version_major: term(),
     version_minor: term()
   }}
  | :error

Returns the interface with name name by calling all_interfaces/1 and filtering the result. Get the interface by its name.

Returns {:ok, %Interface{}} if the interface is found, :error if it's not.