Skip to main content

Module hooks

Module hooks 

Source
Expand description

The ingest bridge as the workload host sees it: authorise the placing project, issue a token with the host contract, bind it to the placement, and revoke it when the instance stops or unloads (a package revocation that force-unloads an instance goes through the same unload; no such path exists in the host yet).

A cog instance registered by IngestHooks::lease lives in the host’s in-memory instance table. Anything that re-creates an instance record without going through the host’s place (a controller adopting an in-flight placement, a host restart that re-adopts running instances) must call lease again, or the cog’s token is unknown and its posts are refused.

Structs§

IngestHooks
A node’s ingest wiring, shared by its workload hosts.
IngestLease
One instance’s ingest registration. Dropping it closes its scoped listener; revoke the token with IngestHooks::deactivate.

Traits§

ProjectDirectory
Which node a project’s key is bound to, from the identity records.