Config (RFC-078)
A period when the community can review the RFC (comment Docs).
Document Maintainers: Andi Gabriel Tan 2024. List of other contributors in Annex. 1.
Copyright: MIT license
Copyright © 2018-2024 Axiologic Research and Contributors.
This document is licensed under MIT license.
Abstract
This API space provides utilities for OpenDSU environment configurations.
1. Config functions
Function autoConfigFromEnvironment(environment)
Description: Set the correct config according to your environment.
Name | Type | Value | Description |
---|---|---|---|
environment | Your setup environment. |
Returns: This function does not return anything.
Function disableLocalVault()
Description: Disable the local vault (the cache) by setting the option cache.vault_type value to “no-cache”. It can be used if the DSU is located on the server.
Returns: This function does not return anything.
Function get(key)
Description: Retrieve the key of the environment configuration.
Name | Type | Value | Description |
---|---|---|---|
key | string | *required | The key of the environment configuration you want to access. |
Returns
Name | Description |
---|---|
any | Return the value associated with the key. |
Function set(key, value)
Description: Set a value for the provided key in your environment configuration.
Name | Type | Value | Description |
---|---|---|---|
key | string | *required | The key you want to configure. |
value | any | The value you want to set for the key. |
Function getEnv(key, callback)
Description: Get the value for the provided key from your environment configuration.
Name | Type | Value | Description |
---|---|---|---|
key | string | *required | The key of the environment you want to access. |
callback | function | *required |
Returns
Name | Description |
---|---|
any | An error and a specific message / The environment associated with the key. |
Function setEnv(key, value, callback)
Description: Set a value for the provided key in your environment configuration.
Name | Type | Value | Description |
---|---|---|---|
key | string | *required | The key of the environment you want to access. |
value | |||
callback | function | *required |
Returns
Name | Description |
---|---|
any | An error and a specific message / The environment associated with the key. |
Function readEnvFile(callback)
Description: Read your environment configuration.
Contributors
-
Axiologic Research: New content and improvements. Original texts under PharmaLedger Association and Novartis funding. MIT licensed content accordingly with the contracts. Publish and maintain the www.opendsu.org site.
-
PharmaLedger Project: Review, feedback, observations, new content, and corrections MIT licensed accordingly with the consortium agreements.
- PrivateSky Research Project: MIT licensed content accordingly with the contracts. https://profs.info.uaic.ro/~ads/PrivateSky/
Annex 1. Contributors
Current Editors | |
---|---|
Sînică Alboaie | sinica.alboaie@axiologic.net |
Cosmin Ursache | cosmin@axiologic.net |
Teodor Lupu | teodor@axiologic.net |
Andi-Gabriel Țan | andi@axiologic.net |
Contributors Axiologic Research | |
Adrian Ganga | adrian@axiologic.net |
Andi-Gabriel Țan | andi@axiologic.net |
Cosmin Ursache | cosmin@axiologic.net |
Daniel Sava | daniel@axiologic.net |
Nicoleta Mihalache | nicoleta@axiologic.net |
Valentin Gérard | valentin@axiologic.net |
PrivateSky Contributors | |
Alex Sofronie | alsofronie@gmail.com (DPO) |
Cosmin Ursache | cos.ursache@gmail.com (UAIC) |
Daniel Sava | sava.dumitru.daniel@gmail.com (HVS, AQS) |
Daniel Visoiu | visoiu.daniel.g@gmail.com (SGiant) |
Lenuța Alboaie | lalboaie@gmail.com (UAIC) |
Rafael Mastaleru | rafael@rms.ro (RMS) |
Sînică Alboaie | salboaie@gmail.com (UAIC) |
Vlad Balmos | vlad.balmos@gmail.com (Code932) |
PharmaLedger Contributors | |
Ana Balan | bam@rms.ro (RMS) |
Bogdan Mastahac | mab@rms.ro (RMS) |
Cosmin Ursache | cos@rms.ro (RMS) |
Rafael Mastaleru | raf@rms.ro (RMS) |