new(utils): add new helper to calculate file sha256sum

Signed-off-by: Melissa Kilby <melissa.kilby.oss@gmail.com>
This commit is contained in:
Melissa Kilby
2024-05-08 12:42:47 +00:00
committed by poiana
parent 44c275dee8
commit 2b80cf85ac
2 changed files with 33 additions and 0 deletions

View File

@@ -27,6 +27,8 @@ namespace falco::utils
{
uint64_t parse_prometheus_interval(std::string interval_str);
std::string calculate_file_sha256sum(const std::string& filename);
std::string wrap_text(const std::string& in, uint32_t indent, uint32_t linelen);
void readfile(const std::string& filename, std::string& data);