AuthShield v0.0.2 AuthShield.Credentials.Behaviour behaviour View Source

AuthShield Credentials behaviour.

Link to this section Summary

Types

Credential schemas types

Transactional responses of failed

Transactional responses of success

Link to this section Types

Credential schemas types

Link to this type

failed_response()

View Source
failed_response() :: {:error, Ecto.Changeset.t()}

Transactional responses of failed

Link to this type

success_response()

View Source
success_response() :: {:ok, credential()}

Transactional responses of success

Link to this section Callbacks

Link to this callback

delete!(model)

View Source
delete!(model :: credential()) :: credential() | no_return()
Link to this callback

get_by(filters)

View Source
get_by(filters :: keyword()) :: credential() | nil
Link to this callback

get_by!(filters)

View Source
get_by!(filters :: keyword()) :: credential() | no_return()
Link to this callback

insert!(params)

View Source
insert!(params :: map()) :: credential() | no_return()
Link to this callback

list(filters)

View Source
list(filters :: keyword()) :: [credential()]