View Source cfclient_config (cfclient v1.2.0)

Functions to manage client configuration.

Link to this section Summary

Link to this section Types

-type config() :: map().

Link to this section Functions

Link to this function

authenticate(ApiKey, Config)

View Source
-spec authenticate(binary() | string() | undefined | nil, map()) ->
                {ok, Config :: map()} | {error, Response :: term()}.
with Authenticate with server and merge project attributes into config
-spec create_tables(config()) -> ok.
-spec defaults() -> map().
-spec delete_tables(list()) -> ok.
-spec get_config() -> config().
-spec get_config(atom()) -> config().
-spec get_value(atom() | binary() | string()) -> term().
-spec get_value(atom(), map()) -> term().
-spec init(proplists:proplist()) -> ok.
-spec normalize(proplists:proplist()) -> map().
-spec parse_jwt(binary()) -> {ok, map()} | {error, Reason :: term()}.
-spec set_config(config()) -> ok.
Link to this function

set_config(Name, Config)

View Source
-spec set_config(atom(), config()) -> ok.