Documentation ¶
Overview ¶
The `snap-recovery-chooser` acts as a proxy between the chooser UI process and the actual snapd daemon.
It obtains the list of seed systems and their actions from the snapd API and passed that directly to the standard input of the UI process. The UI process is expected to present the list of options to the user and print out a JSON object with the choice to its standard output.
The JSON object carrying the list of systems is the client.ChooserSystems structure. The response is defined as follows:
{ "label": "<system-label", "action": {} // client.SystemAction object }
No action is forwarded to snapd if the chooser UI exits with an error code or the response structure is invalid.
Click to show internal directories.
Click to hide internal directories.