ExEEx.Adapter behaviour (exeex v0.1.0)

Specifies the minimal API required from storage adapters.

Summary

Callbacks

Link to this callback

expand_path(filepath)

@callback expand_path(filepath :: String.t()) :: String.t()
Link to this callback

expand_path(filepath, rootdir)

@callback expand_path(filepath :: String.t(), rootdir :: String.t()) :: String.t()
@callback read(filepath :: String.t()) :: {:ok, String.t()} | {:error, term()}
Link to this callback

read(filepath, rootdir)

@callback read(filepath :: String.t(), rootdir :: String.t()) ::
  {:ok, String.t()} | {:error, term()}