Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::inspect::ControlTrustedHostInventory Class Reference

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

Detailed Description

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.

Member Typedef Documentation

◆ Clock

using pulp::inspect::ControlTrustedHostInventory::Clock = std::function<std::chrono::steady_clock::time_point()>

Constructor & Destructor Documentation

◆ ControlTrustedHostInventory() [1/2]

pulp::inspect::ControlTrustedHostInventory::ControlTrustedHostInventory ( ControlTrustedHostInventoryConfig config,
Clock clock = [] { return std::chrono::steady_clock::now();} )
explicit

◆ ~ControlTrustedHostInventory()

pulp::inspect::ControlTrustedHostInventory::~ControlTrustedHostInventory ( )

◆ ControlTrustedHostInventory() [2/2]

pulp::inspect::ControlTrustedHostInventory::ControlTrustedHostInventory ( const ControlTrustedHostInventory & )
delete

Member Function Documentation

◆ consume()

std::optional< ControlTrustedHostSnapshot > pulp::inspect::ControlTrustedHostInventory::consume ( std::string_view inventory_id)

◆ operator=()

ControlTrustedHostInventory & pulp::inspect::ControlTrustedHostInventory::operator= ( const ControlTrustedHostInventory & )
delete

◆ prepare()

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.

◆ size()

std::size_t pulp::inspect::ControlTrustedHostInventory::size ( ) const

◆ sweep()

std::size_t pulp::inspect::ControlTrustedHostInventory::sweep ( )

The documentation for this class was generated from the following file: