Module clique_config

Data Types

cuttlefish_flag_list()

cuttlefish_flag_list() = [undefined | cuttlefish_flag_spec()]

cuttlefish_flag_spec()

cuttlefish_flag_spec() = {flag, atom(), atom()}

envkey()

envkey() = {string(), {atom(), atom()}}

err()

err() = {error, term()}

flagspecs()

flagspecs() = [spec()]

proplist()

proplist() = [{atom(), term()}]

status()

status() = clique_status:status()

Function Index

config_flags/0
describe/2
do_set/1
get_local_env_status/2
get_local_env_vals/2
init/0
load_schema/1Load Schemas into ets when given directories containing the *.schema files.
register/2Register configuration callbacks for a given config key.
register_formatter/2Register a pretty-print function for a given config key.
set/2
show/2
teardown/0
whitelist/1Whitelist settable cuttlefish variables.

Function Details

config_flags/0

config_flags() -> flagspecs()

describe/2

describe(Args::[string()], Flags::proplist()) -> clique_status:status() | err()

do_set/1

do_set(Args) -> any()

get_local_env_status/2

get_local_env_status(EnvKeys::[envkey()], CuttlefishFlags::cuttlefish_flag_list()) -> status()

get_local_env_vals/2

get_local_env_vals(EnvKeys::[envkey()], CuttlefishFlags::cuttlefish_flag_list()) -> list()

init/0

init() -> any()

load_schema/1

load_schema(Directories::[string()]) -> ok | {error, schema_files_not_found}

Load Schemas into ets when given directories containing the *.schema files. Note that this must be run before any registrations are made.

register/2

register(Key::[string()], Callback::function()) -> true

Register configuration callbacks for a given config key

register_formatter/2

register_formatter(Key::[string()], Callback::function()) -> true

Register a pretty-print function for a given config key

set/2

set(Args::proplist(), Flags::proplist()) -> status() | err()

show/2

show(Args::[string()], Flags::proplist()) -> clique_status:status() | err()

teardown/0

teardown() -> ok

whitelist/1

whitelist(Keys::[string()]) -> ok | {error, {invalid_config_keys, [string()]}}

Whitelist settable cuttlefish variables. By default all variables are not settable.


Generated by EDoc