Skip to main content

Module homeplugins

Module homeplugins 

Source
Expand description

Home-managed plugin installs, deletes and their status reports (Go internal/homeplugins and internal/home/plugin_status.go).

Home either resolves the plugins to install (plugin-sync, with short-lived store credentials) or, on Homes without plugin sync, leaves the node to install the store manifests in its plugin configs. Every outcome becomes a SyncReport that the node pushes to Home’s plugin-status list.

Structs§

Platform
Go homeplugins.Platform.
PluginInstallStatus
Go homeplugins.PluginInstallStatus.
SyncConfig
The parts of a config a sync reads (Go’s cfg.Plugins and cfg.ProxyURL).
SyncReport
Go homeplugins.SyncReport.

Traits§

PluginRuntime
What the plugin host tells a sync (Go PluginRuntime and PluginLoadInspector).

Functions§

completed_sync_report
Go CompletedSyncReport: a finished report for an outcome before any install.
current_platform
Go CurrentPlatform.
delete_with_report
Go DeleteWithReport: removes every file of the plugin for this platform, unloading it first when it is busy.
installed_versions
Go InstalledVersions: the selected file’s version of every configured plugin.
mark_load_results
Go MarkLoadResults: moves the report to the load phase, failing it for every installed plugin the host did not register. An earlier sync error is kept.
normalize_platform
Go NormalizePlatform.
report_plugin_status
Go home.ReportPluginStatus: stamps the node and time on report and pushes it with push (Go RPushPluginStatus) within ten seconds.
sync_platform_with_report
Go SyncPlatformWithReport.
sync_resolved_with_report
Go SyncResolvedWithReport: installs the plugins Home resolved, with the store credentials it sent for them until expires_at. Installed plugins Home left out are reported as skipped.
sync_with_report
Go SyncWithReport: installs each enabled plugin’s store manifest for this platform (Homes without plugin sync).