Allows one to list backends.  
 More...
#include <backends.hpp>
|  | 
| static const char * | mountpointsPath = "system/elektra/mountpoints" | 
|  | Below this path is the mountConf. 
 | 
|  | 
Allows one to list backends. 
  
  | 
        
          | BackendInfo kdb::tools::Backends::findBackend | ( | std::string const & | mountPath, |  
          |  |  | KeySet | mountConf, |  
          |  |  | bool | verbose = false |  
          |  | ) |  |  |  | static | 
 
Find a backend in the given name. 
- Parameters
- 
  
    | mountPath | the given backend name to find |  
 
For backwards compatibility old-style names containing _ instead of escaped / are accepted if no modern-style mountpoint is found.
- Parameters
- 
  
    | mountConf | the configuration to search (should contain keys below mountpointsPath to find something) |  
 
- Returns
- the found backend or an empty BackendInfo if nothing found (with empty strings) 
 
 
  
  | 
        
          | Backends::BackendInfoVector kdb::tools::Backends::getBackendInfo | ( | KeySet | mountConf | ) |  |  | static | 
 
give info about current mounted backends 
- Parameters
- 
  
  
- Returns
- an vector of information about mounted backends 
 
 
  
  | 
        
          | std::string kdb::tools::Backends::getBasePath | ( | std::string | mp | ) |  |  | static | 
 
returns the base path of a mounted backend below system/elektra/mountpoints 
- Parameters
- 
  
    | mp | the mountpoint (name will be derived from it) |  
 
- Returns
- the properly prefixed and escaped name 
 
 
  
  | 
        
          | bool kdb::tools::Backends::umount | ( | std::string const & | mountPath, |  
          |  |  | KeySet & | mountConf |  
          |  | ) |  |  |  | static | 
 
Unmount a backend by given mountPath. 
- Parameters
- 
  
    | mountPath | the given mountpoint |  
 
Uses findBackend() to locate the backend.
- Return values
- 
  
    | true | if something was done |  | false | if nothing was done (but also no error) |  
 
 
 
The documentation for this class was generated from the following files: