29 #ifndef __PLUGINS_FIREWALL_RULE_FACTORY_H__ 30 #define __PLUGINS_FIREWALL_RULE_FACTORY_H__ 98 [[nodiscard]] std::unique_ptr<IRule>
100 const std::vector<std::string>& commands)
const override;
std::unique_ptr< IRule > createRule(const std::string &name, const std::vector< std::string > &commands) const override
Create a firewalling rule.
std::unique_ptr< Internal > m_internal
Definition: RuleFactory.h:103
RuleFactory(const utils::command::IExecutor &executor)
A helper class to execute shell commands securely. This class is a high level interface added to ease...
Definition: IExecutor.h:51
A factory class to help creating rules thus hiding low level details to the core service.
Definition: IRuleFactory.h:56
A factory class to help creating firewalling rules.
Definition: RuleFactory.h:57
RuleFactory & operator=(const RuleFactory &)=delete