Opsmaru.Containers.Docker.RawTunnel (opsmaru_containers v0.1.0)

Copy Markdown View Source

Relay two claimed streams after the listener and backend have accepted a Docker hijack. The adapters hand over bytes already read by their HTTP parsers. The listener supplies the checked upstream handshake exactly once.

Summary

Functions

run(frontend, backend, opts)

@spec run(
  Opsmaru.Containers.Transport.Stream.t(),
  Opsmaru.Containers.Transport.Stream.t(),
  keyword()
) ::
  :ok | {:error, :stream_failed | :deadline}