49 const std::shared_ptr<const IDobbySettings>& settings,
51 const std::string& bundlePath);
58 uid_t userId()
const override;
59 gid_t groupId()
const override;
60 void setUidGidMappings(uid_t userId, gid_t groupId);
68 bool consoleDisabled()
const override;
69 ssize_t consoleLimit()
const override;
70 const std::string& consolePath()
const override;
73 bool restartOnCrash()
const override;
76 const std::string& rootfsPath()
const override;
79 std::shared_ptr<rt_dobby_schema> config()
const override;
82 const std::map<std::string, Json::Value>& rdkPlugins()
const override;
84#if defined(LEGACY_COMPONENTS)
86 const std::map<std::string, Json::Value>& legacyPlugins()
const override;
96 const std::string& bundlePath);
99#if defined(LEGACY_COMPONENTS)
100 bool processLegacyPlugins(
const Json::Value& value);
109 const std::shared_ptr<const IDobbySettings> mSettings;
116 std::shared_ptr<rt_dobby_schema> mConf;
124 bool mRestartOnCrash;
132 bool mConsoleDisabled;
133 std::string mConsolePath;
134 ssize_t mConsoleLimit;
137 std::map<std::string, Json::Value> mRdkPlugins;
139#if defined(LEGACY_COMPONENTS)
141 std::map<std::string, Json::Value> mLegacyPlugins;
145 std::string mRootfsPath;
A wrapper around a std::string, used to add some type definition to to an id and also to sanity check...
Definition ContainerId.h:41
Takes a JSON formatted OCI bundle configuration file in the constructor, parses it and extracts the r...
Definition DobbyBundleConfig.h:42
bool parseOCIConfig(const std::string &bundlePath)
Parses the bundle config's contents that are needed by plugins.
Definition DobbyBundleConfig.cpp:308