20 #ifndef HTTPPROXYPLUGIN_H
21 #define HTTPPROXYPLUGIN_H
23 #include <RdkPluginBase.h>
24 #include "DobbyRdkPluginUtils.h"
47 const std::shared_ptr<DobbyRdkPluginUtils> &utils,
48 const std::string &rootfsPath);
51 inline std::string
name()
const override
74 const std::string mName;
75 std::shared_ptr<rt_dobby_schema> mContainerConfig;
76 const std::string mMountedCACertsPath;
77 const rt_defs_plugins_http_proxy_data *mPluginData;
78 const std::shared_ptr<DobbyRdkPluginUtils> mUtils;
Used to set http proxy environment variables and optionally add additional root ca certificates to th...
Definition: HttpProxyPlugin.h:44
unsigned hookHints() const override
Set the bit flags for which hooks we're going to use.
Definition: HttpProxyPlugin.cpp:61
bool preCreation() override
Dobby Hook - run in host namespace before container creation process.
Definition: HttpProxyPlugin.cpp:108
bool postHalt() override
Dobby Hook - Run in host namespace when container terminates.
Definition: HttpProxyPlugin.cpp:128
bool cleanup()
Cleans up any temp ca-certifice.crt files created for the container.
Definition: HttpProxyPlugin.cpp:330
bool setupHttpProxy()
Adds the httpproxy and no_proxy environment variables to the container.
Definition: HttpProxyPlugin.cpp:181
bool postInstallation() override
Dobby Hook - run in host namespace once when container bundle is downloaded.
Definition: HttpProxyPlugin.cpp:75
std::string name() const override
Should return the name of the plugin.
Definition: HttpProxyPlugin.h:51
std::vector< std::string > getDependencies() const override
Should return the names of the plugins this plugin depends on.
Definition: HttpProxyPlugin.cpp:161
bool addCACertificateMount()
Adds a mount to the new ca-certificates.crt file created in the container's bundle directory in the p...
Definition: HttpProxyPlugin.cpp:250
bool addProxyToRootCABundle()
Adds the proxy's CA cert to the bundle used by the container.
Definition: HttpProxyPlugin.cpp:285
Basic object that provides the default overrides for a plugin.
Definition: RdkPluginBase.h:34