Skip to main content

Module bundle

Module bundle 

Source
Expand description

Diagnostic bundle collection and ZIP export.

collect_bundle gathers relevant files, applies redaction to every text file, compresses them into a ZIP, and returns a BundleRef that the caller can pass to export_bundle to move the ZIP to a user-chosen path.

§OCP

  • BundleConfig is open for new fields (e.g. include_perf_traces).
  • Bundle composition is one function — extending content sources is one new branch in collect_bundle.
  • Redaction is applied once per file before zipping — no leak path.

Structs§

AppPaths
Resolved file-system paths used by the bundle collector.
BundleConfig
Which files / data categories to include in the bundle.
BundleRef
Reference to a collected (but not yet exported) bundle.

Functions§

add_text_file_to_zip 🔒
Read a file as UTF-8 text, apply redaction, and write it into the ZIP.
collect_bundle
Collect diagnostic files, redact them, zip them, and return a BundleRef.
export_bundle
Copy (and then clean up) the collected ZIP to a user-chosen destination.