snap-recovery-chooser

command
v0.0.0-...-04c4c42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL