Opsmaru.Incus.Gateway.Lease (opsmaru_incus v0.1.0)

Copy Markdown View Source

Exchange-local admission/revocation guard reusable by protocol adapters.

Created only for an admitted exchange, never on dependency load. Rechecks the original grant through Policy with a hard callback deadline. Every exchange, including anonymous local discovery/enrollment, monitors its original admission pid. Anonymous exchanges acquire no grant and skip grant rechecks, but still terminate when their admission stops. The entire polling period, callback budget and interruption grace fit inside recheck_interval (at most five seconds). An adapter must supply an interruption function that closes blocked frontend I/O; the guard also ends the exchange process so its owned backend sockets close. No cleanup calls the host, opens a backend or cancels a native operation.

Summary

Functions

check(lease)

start(gateway, request, admitted, interrupt)

stop(lease)

valid?(lease)