Opsmaru.Incus.Connection (opsmaru_incus v0.1.0)

Copy Markdown View Source

Explicit immutable host-selected backend. Construction performs no I/O.

unix!/2 requires an absolute owner-private socket. https!/2 requires an HTTPS origin, CA certificate file, client certificate and private-key files. TLS verifies both trust and hostname. Secret files are opened only for an authorized call; paths are never included in diagnostics or Inspect output. Connections are privileged host configuration, not agent-selected URLs.

Summary

Functions

Select a native cluster member (target).

Select a native project without changing any other connection.

Bind a local request lifetime immutably, without I/O or changing host identity.

Types

t()

@type t() :: %Opsmaru.Incus.Connection{
  address: term(),
  max_chunk_bytes: term(),
  max_request_bytes: term(),
  max_response_bytes: term(),
  max_stream_bytes: term(),
  member: term(),
  owner: term(),
  project: term(),
  queue_limit: term(),
  request_context: term(),
  require_authenticated: term(),
  stream_timeout: term(),
  timeout: term(),
  tls: term(),
  transport: term()
}

Functions

https!(url, opts)

member(connection, member)

Select a native cluster member (target).

project(connection, project)

Select a native project without changing any other connection.

unix!(path, opts)

with_context(connection, context)

Bind a local request lifetime immutably, without I/O or changing host identity.