API Reference openrelik_worker_common v#0.1.0

Copy Markdown View Source

Modules

Elixir port of Python's openrelik_worker_common library.

Helper functions for extracting archives (openrelik_worker_common.archive_utils).

OpenRelik data types (openrelik_worker_common.data_types).

OpenRelik data types (StrEnum equivalent).

File helper functions for OpenRelik workers (Elixir port of openrelik_worker_common.file_utils).

Represents an output file created by an OpenRelik worker task (Elixir port of openrelik_worker_common.file_utils.OutputFile).

Represents a temporary directory on disk, equivalent to Python's tempfile.TemporaryDirectory.

Disk image mounting utilities (openrelik_worker_common.mount_utils).

Provides functionality to map a disk image file to block devices (loop or nbd) and mount them (openrelik_worker_common.mount_utils.BlockDevice).

Distributed Redis lock for NBD device coordination across containers/nodes, matching Python redis.lock.Lock (name, timeout, token, acquire/1, release/1).

Helper functions for password hash cracking (openrelik_worker_common.password_utils).

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

Represents a Markdown document (openrelik_worker_common.reporting.MarkdownDocument).

Represents a section of a Markdown document (openrelik_worker_common.reporting.MarkdownDocumentSection).

Formats strings into Markdown elements (openrelik_worker_common.reporting.MarkdownFormatter).

Represents a Markdown table (openrelik_worker_common.reporting.MarkdownTable).

Reporting priority enum to store common values (IntEnum equivalent).

Represents a task report (openrelik_worker_common.reporting.Report), inheriting behavior from MarkdownDocument.

Helper functions for tasks (openrelik_worker_common.task_utils).