OpenrelikWorkerCommon.Reporting (openrelik_worker_common v0.1.0)

Copy Markdown View Source

Helper functions and structs for reporting (openrelik_worker_common.reporting).

Summary

Functions

Serializes a file report into a dictionary (string-keyed map) for use in a task result.

Functions

serialize_file_report(input_file, report_file, report)

@spec serialize_file_report(
  map(),
  OpenrelikWorkerCommon.FileUtils.OutputFile.t() | map(),
  map()
) :: %{
  required(String.t()) => term()
}

Serializes a file report into a dictionary (string-keyed map) for use in a task result.