Documentation
¶
Overview ¶
Package serverplugins is the declarative registry of Sarde's built-in server-side plugins: manifest.yaml carries their metadata and defaults/<name>.yaml their configurable fields, in the same blueprint shape used by clientplugins and external plugin blueprints.
The Go implementations live elsewhere (internal/plugin builtins and the subpackages registered in internal/build); this package only publishes what tooling such as `sarde plugins --format json` needs to describe them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fields ¶
Fields returns a plugin's declared config fields (sorted by name), or nil for an unknown plugin.
func Initialize ¶
func Initialize() error
Initialize parses the embedded manifest and defaults once.
Types ¶
type ManifestEntry ¶
type ManifestEntry struct {
Label string `yaml:"label"`
Description string `yaml:"description"`
Group string `yaml:"group"`
DefaultEnabled bool `yaml:"default_enabled"`
ConfigKey string `yaml:"config_key"`
}
ManifestEntry is one plugin's metadata from manifest.yaml.
func Entry ¶
func Entry(slug string) (ManifestEntry, bool)
Entry returns a plugin's manifest metadata.