Functions
Less than 1 minute
Functions
Defaults(basePath)
JSON config.
Returns: Partial<Config>
Arguments:
basePath
: string
Dynamics()
Provided dynamically by server.
Returns: Partial<Config>
Arguments: none
Envs(basePath)
ENV variable (key/value) map.
Returns: Partial<Config>
Arguments:
basePath
: string
Local()
Development config.
Returns: Partial<Config>
Arguments: none
definitions(options)
Returns: object
Arguments:
options
: ConfigPluginOpts
mapFromKeyValues(spec, values)
Maps the given objects onto a flattened set of (key x values).
Expects parsed yaml content of the form:
ENV_VAR:
path: config.selector.path
Returns: object
Arguments:
spec
: MappingSpec
values
: Record<string, any>
mapToKeyValues(spec, values)
Maps the given flattend set of (key x values) onto a JSON object.
Returns: Record<string, any>
Arguments:
spec
: MappingSpec
values
: any
validateConfig(config)
Validate config object.
Returns: Config
Arguments:
config
: Config