Opsmaru.Incus.RawChannel (opsmaru_incus v0.1.0)

Copy Markdown View Source

Owner-monitored native SFTP/NBD duplex byte channel. No WebSocket framing.

A pull reader and bounded inbound queue expose backpressure; overflow is visible. Read EOF leaves the write direction usable over Unix; over TLS the peer's close_notify ends the connection, so later writes return :write_closed. Lifetime, chunks, byte totals and every blocking socket write are bounded. Closing the local channel never cancels an operation or owns host/Incus lifecycle.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

close(channel)

open(client, path, protocol)

recv(channel, timeout \\ 5000)

send_data(channel, bytes)

shutdown_write(channel)