refactor(userspace/engine): update rule loader to use new filter_ruleset interface

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2022-04-14 14:12:27 +00:00
committed by poiana
parent f41f51f736
commit 50c2aa9c81
5 changed files with 57 additions and 79 deletions

View File

@@ -21,11 +21,9 @@ limitations under the License.
#include <vector>
#include <yaml-cpp/yaml.h>
#include "falco_rule.h"
#include "falco_source.h"
#include "indexed_vector.h"
// todo(jasondellaluce): remove this cyclic dependency
class falco_engine;
/*!
\brief Ruleset loader of the falco engine
@@ -73,9 +71,9 @@ public:
std::string output_extra;
bool replace_output_container_info;
falco_common::priority_type min_priority;
indexed_vector<falco_source> sources;
std::vector<std::string> warnings;
std::vector<std::string> errors;
falco_engine* engine;
};
/*!