Certitudo.Report.Store (certitudo v0.1.0)

Copy Markdown View Source

Report snapshot lookup and module-query helpers.

Summary

Functions

demodulize(name)

@spec demodulize(binary()) :: binary()

find_module(modules, query)

@spec find_module(map(), binary()) ::
  {:ok, binary()} | {:error, :not_found | {:ambiguous, [binary()]}}

latest_snapshot_path!()

@spec latest_snapshot_path!() :: binary()

read_snapshot!(path)

@spec read_snapshot!(binary()) :: map()

report_dir?(dir)

@spec report_dir?(binary()) :: boolean()

report_lookup_error(query, arg2)

@spec report_lookup_error(binary(), {:ambiguous, [binary()]} | :not_found) ::
  no_return()

snapshot_path!(opts)

@spec snapshot_path!(keyword()) :: binary()