OpenrelikWorkerCommon. FileUtils. OutputFile
(openrelik_worker_common v0.1.0)
Copy Markdown
View Source
Represents an output file created by an OpenRelik worker task
(Elixir port of openrelik_worker_common.file_utils.OutputFile).
Fields
:uuid- Unique identifier (uuid4hex) for the file.:display_name- Display name for the file.:extension- Extension of the file.:data_type- Data type of the file.:path- The full path to the file on disk.:original_path- The full original path to the file.:source_file_id- The source file ID or parentOutputFilethis file belongs to.:register_in_db- Whenfalse, the mediator skips DB registration, hashing, and file reports for this file. Defaults totrue.
Summary
Functions
Initializes an %OutputFile{} struct.
Returns a dictionary (string-keyed map) representation of the OutputFile struct.
This is what the mediator server receives and uses to create a File in the database.
Types
Functions
Initializes an %OutputFile{} struct.
Accepts keyword options or a map, or positional arguments matching Python's
OutputFile(uuid, output_path, display_name, ...).
Returns a dictionary (string-keyed map) representation of the OutputFile struct.
This is what the mediator server receives and uses to create a File in the database.