Arango v0.0.1 Arangoex.User

ArangoDB User methods

Summary

Types

t()
t() :: %Arangoex.User{active: boolean, changePassword: boolean, extra: map, passwd: term, user: String.t}

Functions

create(endpoint, user)

Create User

POST /_api/user

databases(endpoint, user)

List the databases available to a User

GET /_api/user/{user}/database

grant(endpoint, user, database)
grant(Arangoex.Endpoint.t, t, Database.t) :: Arangoex.ok_error([String.t])

Grant database access

PUT /_api/user/{user}/database/{dbname}

new(map_or_kwlist, opts \\ [])
new(ExConstructor.map_or_kwlist, Keyword.t) :: %Arangoex.User{active: term, changePassword: term, extra: term, passwd: term, user: term}
remove(endpoint, user)

Remove User

DELETE /_api/user/{user}

replace(endpoint, user, opts \\ [])

Replace User

PUT /_api/user/{user}

revoke(endpoint, user, database)
revoke(Arangoex.Endpoint.t, t, Database.t) :: Arangoex.ok_error([String.t])

Revoke database access

PUT /_api/user/{user}/database/{dbname}

update(endpoint, user, opts \\ [])

Update User

PATCH /_api/user/{user}

user(endpoint, user)

Fetch User

GET /_api/user/{user}

users(endpoint)

List available Users

GET /_api/user/