Opsmaru.Containers.Transport behaviour (opsmaru_containers v0.1.0)

Copy Markdown View Source

A host-supplied connector to a selected nested Docker engine.

Each call opens an independent duplex stream. The dialer honors the supplied absolute monotonic deadline and releases transport resources if the owning request exits. A host dialer can use a private path to the engine it owns.

Summary

Types

dialer()

@type dialer() :: {module(), term()}

Callbacks

dial(t, options, deadline)

@callback dial(
  Opsmaru.Containers.Nested.Target.t(),
  options :: term(),
  deadline :: integer()
) ::
  {:ok, Opsmaru.Containers.Transport.Stream.t()} | {:error, term()}