Immudb.Client (immudb_elixir v0.2.0)

Link to this section Summary

Link to this section Functions

Link to this function

change_password(arg1, arg2)

@spec change_password(Immudb.Socket.t(),
  user: String.t(),
  old_password: String.t(),
  new_password: String.t()
) :: {:error, String.t() | atom()} | {:ok, String.t()}
Link to this function

create_user(socket, list)

@spec create_user(Immudb.Socket.t(),
  user: String.t(),
  password: String.t(),
  database: String.t(),
  permission: atom()
) :: {:error, String.t() | atom()} | {:ok, nil}
Link to this function

current_state(arg1)

@spec current_state(Immudb.Socket.t()) :: {:error, String.t() | atom()} | {:ok, nil}
@spec health(Immudb.Socket.t()) :: {:error, String.t() | atom()} | {:ok, nil}
Link to this function

list_users(arg1)

@spec list_users(Immudb.Socket.t()) ::
  {:error, String.t() | atom()} | {:ok, [User.t()]}
Link to this function

login(channel, user, password)

@spec login(GRPC.Channel.t(), String.t(), String.t()) ::
  {:error, String.t() | atom()} | {:ok, String.t()}
@spec logout(GRPC.Channel.t()) :: {:error, String.t() | atom()} | {:ok, nil}
@spec new(
  host: String.t(),
  port: integer(),
  username: String.t(),
  password: String.t(),
  database: String.t()
) :: {:ok, Immudb.Socket.t()} | {:error, String.t()}
@spec new([{:url, String.t()}]) :: {:ok, Immudb.Socket.t()} | {:error, String.t()}
Link to this function

update_auth_config(socket, params)

Link to this function

update_mtls_confg(socket, params)