Plugin API 2.4.0. Needs Termix 26.11.2.
Added
PluginHostLockProvider.lockedHosts()lists every host a provider locks. A plugin process needs it to provide host locksctx.hosts.status.provide,ctx.sync.provideandctx.sync.hostwork in a plugin processctx.sync.host.desktop.connectionOrigin()reads the desktop wide default for where connections startctx.files.readEnvFile(name)reads the file an admin named in a manifestenvvariable marked"file": true, such as a mounted config file. A plugin process can't read it itself- Manifest
enventries take"file": true - Capability
config:secretsandctx.files.readSecret({ env } | { file })read a secret a config file points at, such as a Docker secret. Never Termix's own variables, key files or data folder createMockCtx({ envFiles, configSecrets })answersctx.files.readEnvFileandreadSecret
Changed
- In a plugin process,
ctx.sync.host.replica.orderSelfReferences, an entity'scovers,http.normalizeServerUrl,plugins.lastRemoteandplugins.localNamesreturn Promises createMockCtx({ sandbox: true })takes host locks withlockedHosts, a host status provider and a sync provider