Functions
Less than 1 minute
Functions
Defaults(basePath)
JSON config.
Returns: T
Arguments:
basePath: string
Dynamics()
Provided dynamically by server.
Returns: T
Arguments: none
Envs(basePath)
ENV variable (key/value) map
Returns: T
Arguments:
basePath: string
LocalStorage()
File storage.
Returns: T
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