Astarte.Device.FilesystemInterfaceProvider.init

You're seeing just the function init, go back to Astarte.Device.FilesystemInterfaceProvider module for more information.

Loads interfaces from a dir or a single JSON file.

Returns {:ok, interfaces} where interfaces is a list of %Astarte.Core.Interface{}.

args is a keyword list of options.

Options

  • path - A filesystem path. This can be a single JSON file or a directory. If it's a directory, all files with a .json extension in the directory will be parsed as interfaces, otherwise the path is interpreted as a path to a single JSON file containing an interface.