Rivet.Ident.Access.Lib (rivet_ident v3.5.0)
View SourceSummary
Functions
Fold a list of accesses into a set of actions, using memory cache
Types
@type ecto_p_result() :: {:ok | :error, Ecto.Changeset.t()}
@type model_p_result() :: {:ok, Rivet.Ident.Access.t()}
Functions
@spec add(Rivet.Ident.User.t() | String.t(), atom(), atom(), String.t() | nil) :: {:ok, Rivet.Ident.Access.t()} | {:error, String.t()}
@spec drop(Rivet.Ident.User.t(), atom(), atom(), String.t() | nil) :: {:ok, Rivet.Ident.Access.t()} | {:error, String.t()}
@spec get_actions(Rivet.Ident.User.t()) :: MapSet.t()
Fold a list of accesses into a set of actions, using memory cache
@spec get_actions(Rivet.Ident.User.t(), domain :: atom(), ref_id :: binary()) :: MapSet.t()