Documentation
¶
Overview ¶
Package pluginregistry owns the explicit, versioned plugin installation registry used by generated Ridu applications.
Index ¶
Constants ¶
View Source
const CurrentVersion = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Key string `json:"key"`
GoPackage string `json:"goPackage"`
GoVersion string `json:"goVersion"`
Constructor string `json:"constructor"`
AdminPackage string `json:"adminPackage,omitempty"`
AdminVersion string `json:"adminVersion,omitempty"`
}
Entry describes dependencies and the zero-argument constructor used to register one compiled plugin. Versions are dependency-manager requirements, not the runtime descriptor version reported by the plugin itself.
type Registry ¶
Registry is the canonical input for the generated compiled-plugin registry.
func Load ¶
Load reads and validates a registry. A missing file is treated as an empty current-version registry so older hand-written projects can adopt the tool.
func (*Registry) Remove ¶
Remove deletes one installed plugin and returns its dependency declaration.
Click to show internal directories.
Click to hide internal directories.