Process-local snapshot store intended to be owned by the broker composition root. More...
#include <control_trusted_host_inventory.hpp>
Public Types | |
| using | Clock = std::function<std::chrono::steady_clock::time_point()> |
Public Member Functions | |
| ControlTrustedHostInventory (ControlTrustedHostInventoryConfig config, Clock clock=[] { return std::chrono::steady_clock::now();}) | |
| ~ControlTrustedHostInventory () | |
| ControlTrustedHostInventory (const ControlTrustedHostInventory &)=delete | |
| ControlTrustedHostInventory & | operator= (const ControlTrustedHostInventory &)=delete |
| ControlTrustedHostInventoryPrepareResult | prepare (const ControlTrustedHostLaunchIntent &intent, std::optional< ControlTrustedHostPreparationPolicy > policy=std::nullopt) |
| Raw snapshot preparation is available on macOS v1. | |
| std::optional< ControlTrustedHostSnapshot > | consume (std::string_view inventory_id) |
| std::size_t | sweep () |
| std::size_t | size () const |
Process-local snapshot store intended to be owned by the broker composition root.
Tickets and broker-minted registration fields are recognized only by this object; constructing another inventory cannot admit or register a host with the broker and grants no cross-process authority.
| using pulp::inspect::ControlTrustedHostInventory::Clock = std::function<std::chrono::steady_clock::time_point()> |
|
explicit |
| pulp::inspect::ControlTrustedHostInventory::~ControlTrustedHostInventory | ( | ) |
|
delete |
| std::optional< ControlTrustedHostSnapshot > pulp::inspect::ControlTrustedHostInventory::consume | ( | std::string_view | inventory_id | ) |
|
delete |
| ControlTrustedHostInventoryPrepareResult pulp::inspect::ControlTrustedHostInventory::prepare | ( | const ControlTrustedHostLaunchIntent & | intent, |
| std::optional< ControlTrustedHostPreparationPolicy > | policy = std::nullopt ) |
Raw snapshot preparation is available on macOS v1.
Other platforms retain this API as a fail-closed seam for a future native verifier.
| std::size_t pulp::inspect::ControlTrustedHostInventory::size | ( | ) | const |
| std::size_t pulp::inspect::ControlTrustedHostInventory::sweep | ( | ) |