Module conf_yaml_backend

Behaviours: conf_backend.

Authors: Evgeny Khramtsov (xramtsov@gmail.com).

Data Types

error_reason()

error_reason() = {unsupported_application, atom()} | {invalid_yaml_config, yval:error_reason(), yval:ctx()} | {bad_ref, binary(), yaml_error_reason() | conf_file:error_reason()} | {bad_env, conf:error_reason()} | {bad_mod, conf_misc:error_reason()} | {circular_ref, binary()} | yaml_error_reason()

yaml()

yaml() = term()

yaml_error_reason()

yaml_error_reason() = {bad_yaml, term()}

Function Index

decode/1
format_error/1
mime_types/0
validate/1

Function Details

decode/1

decode(Data::iodata()) -> {ok, yaml()} | {error, error_reason()}

format_error/1

format_error(X1::error_reason()) -> unicode:chardata()

mime_types/0

mime_types() -> [binary(), ...]

validate/1

validate(Y0::yaml()) -> {ok, conf:apps_config()} | {error, error_reason()}


Generated by EDoc