servicex v0.0.7 Servicex.Accounts
The Accounts context.
Link to this section Summary
Functions
Returns an %Ecto.Changeset{}
for tracking grant changes
Returns an %Ecto.Changeset{}
for tracking user changes
Creates a grant
Creates a user
Deletes a Grant
Deletes a User
Gets a single grant
Gets a single user
Returns the list of grants
Returns the list of users
Updates a grant
Updates a user
Link to this section Functions
Link to this function
change_grant(grant)
Returns an %Ecto.Changeset{}
for tracking grant changes.
Examples
iex> change_grant(grant)
%Ecto.Changeset{source: %Grant{}}
Link to this function
change_user(user)
Returns an %Ecto.Changeset{}
for tracking user changes.
Examples
iex> change_user(user)
%Ecto.Changeset{source: %User{}}
Link to this function
create_grant(attrs \\ %{})
Creates a grant.
Examples
iex> create_grant(%{field: value})
{:ok, %Grant{}}
iex> create_grant(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function
create_user(attrs \\ %{})
Creates a user.
Examples
iex> create_user(%{field: value})
{:ok, %User{}}
iex> create_user(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function
delete_grant(grant)
Deletes a Grant.
Examples
iex> delete_grant(grant)
{:ok, %Grant{}}
iex> delete_grant(grant)
{:error, %Ecto.Changeset{}}
Link to this function
delete_user(user)
Deletes a User.
Examples
iex> delete_user(user)
{:ok, %User{}}
iex> delete_user(user)
{:error, %Ecto.Changeset{}}
Link to this function
get_grant!(id)
Gets a single grant.
Raises Ecto.NoResultsError
if the Grant does not exist.
Examples
iex> get_grant!(123)
%Grant{}
iex> get_grant!(456)
** (Ecto.NoResultsError)
Link to this function
get_grant_by_role(role)
Link to this function
get_user!(id)
Gets a single user.
Raises Ecto.NoResultsError
if the User does not exist.
Examples
iex> get_user!(123)
%User{}
iex> get_user!(456)
** (Ecto.NoResultsError)
Link to this function
get_user_by_email!(email)
Link to this function
list_grants()
Returns the list of grants.
Examples
iex> list_grants()
[%Grant{}, ...]
Link to this function
list_users()
Returns the list of users.
Examples
iex> list_users()
[%User{}, ...]
Link to this function
send_verify_mail(user)
Link to this function
update_grant(grant, attrs)
Updates a grant.
Examples
iex> update_grant(grant, %{field: new_value})
{:ok, %Grant{}}
iex> update_grant(grant, %{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function
update_user(user, attrs)
Updates a user.
Examples
iex> update_user(user, %{field: new_value})
{:ok, %User{}}
iex> update_user(user, %{field: bad_value})
{:error, %Ecto.Changeset{}}