StackComponent
The Stack section as a Milpa Component: its state is every backing service the booted plugins declared they need, with the state the panel observed for each. Image, ports, environment (secrets masked), volumes, command, the declaring plugin, the compose fragment and whether the probe port answers — read-only. Declaring a service is a plugin's job (`StackProviderInterface`); running it is the operator's; the panel shows what was declared, by whom, and whether it is reachable.
StackComponent::__construct()
public function __construct(Milpa\Runtime\Stack\StackReader $source):Parameters
| Name | Type | Description |
|---|---|---|
| $source | Milpa\Runtime\Stack\StackReader |
StackComponent::contract()
public static function contract(): Milpa\Live\ValueObjects\ComponentContractThe contract: no props, a read-only state, no actions.
StackComponent::mount()
public function mount(array $props, Milpa\Live\ValueObjects\ComponentContext $context): Milpa\Live\ValueObjects\StateSnapshotMounts with the services the booted plugins declare right now, probed right now.
Parameters
| Name | Type | Description |
|---|---|---|
| $props | array | |
| $context | Milpa\Live\ValueObjects\ComponentContext |
StackComponent::handle()
public function handle(Milpa\Live\ValueObjects\InteractionRequest $request): Milpa\Live\ValueObjects\InteractionResultRefuses every action: the section is read-only.
Parameters
| Name | Type | Description |
|---|---|---|
| $request | Milpa\Live\ValueObjects\InteractionRequest |