Files
archie/internal/infrastructure/controlplanerpc/extensions.go
T
sam 8b28857ff3 feat(secretengine): serve secret engines as go-plugin extensions
A secret engine is now a subprocess serving secretengine.v1, installed through
the package store's new extensions family and enabled by extension-settings.
bws leaves the binary, as do the Yaegi engine loader and its examples.
2026-10-04 00:40:23 +10:00

19 lines
694 B
Go

package controlplanerpc
// ExtensionSettingsKind is the control-plane resource kind holding which
// installed extensions are enabled and how each is configured.
const ExtensionSettingsKind = "extension-settings"
// ExtensionSettings is the extension-settings resource document.
type ExtensionSettings struct {
Extensions []ExtensionSetting `json:"extensions"`
}
// ExtensionSetting enables or disables one installed extension by package name.
// Settings reach the extension through its surface's Configure call.
type ExtensionSetting struct {
Name string `json:"name"`
Enabled bool `json:"enabled"`
Settings map[string]string `json:"settings,omitempty"`
}