Noizu.Context (Noizu Core v0.1.5)

Context module for Noizu.

Link to this section Summary

Link to this section Functions

@spec admin() :: any()
@spec admin(any()) :: any()
@spec dummy() :: any()

placeholder for when real credentials need to be plumbed in, making it easy to find and cleanup over time.

@spec dummy(any()) :: any()
Link to this function

dummy_for_user(user, context \\ nil)

@spec dummy_for_user(any(), any()) :: any()
@spec internal() :: any()
Link to this function

internal(context)

@spec internal(any()) :: any()
Link to this function

option(context, option)

@spec option(any(), any()) :: {:ok, any()} | {:error, any()}
Link to this function

option(context, option, default)

@spec option(any(), any(), any()) :: {:ok, any()} | {:error, any()}
@spec restricted() :: any()
Link to this function

restricted(context)

@spec restricted(any()) :: any()
@spec system() :: any()
Link to this function

system(context)

@spec system(any()) :: any()
Link to this function

with_option(context, option, value)

@spec with_option(any(), any(), any()) :: any()
Link to this function

with_options(context, options)

@spec with_options(any(), any()) :: any()