![]() |
Fledge
An open source edge computing platform for industrial users
|
The storage service must handle its own configuration differently to other services as it is unable to read the configuration from the database. More...
#include <plugin_configuration.h>
Public Member Functions | |
StoragePluginConfiguration (const std::string &name, StoragePlugin *plugin) | |
Constructor for storage service configuration class. | |
const char * | getValue (const std::string &key) |
Return a value from the cached configuration category. | |
bool | hasValue (const std::string &key) |
Return if a value exsits for the cached configuration category. | |
bool | setValue (const std::string &key, const std::string &value) |
Set the value of a configuration item. | |
void | updateCategory (const std::string &json) |
Called when the configuration category is updated. | |
void | registerCategory (ManagementClient *client) |
DefaultConfigCategory * | getDefaultCategory () |
Return the default category to register with the core. More... | |
ConfigCategory * | getConfiguration () |
Return the category to register with the core. More... | |
The storage service must handle its own configuration differently to other services as it is unable to read the configuration from the database.
This class deals with the configuration from the storage plugins, maintaining a cache for the plugin
ConfigCategory * StoragePluginConfiguration::getConfiguration | ( | ) |
Return the category to register with the core.
This allows the storage configuration to appear in the UI
DefaultConfigCategory * StoragePluginConfiguration::getDefaultCategory | ( | ) |
Return the default category to register with the core.
This allows the storage configuration to appear in the UI