Opsmaru.Incus.Transfer (opsmaru_incus v0.1.0)

Copy Markdown View Source

Native HTTP binary transfers with bounded passive reads and acknowledged sinks.

Sources are enumerables of binary chunks. Sinks receive binary chunks and must return :ok; source/sink work is covered by the total stream deadline. Bodies are never JSON/base64 encoded, captured in memory or automatically replayed. All sockets belong to a temporary local worker and close on error, deadline, completion or caller exit. Source/destination files stay host-owned.

Summary

Functions

download(client, path, sink, headers \\ [])

download_post(client, path, source, sink, headers \\ [])

Native POST returning binary data, such as direct backups; failure can be uncertain.

upload(client, path, source, headers \\ [])