Versions in this module Expand all Collapse all v0 v0.16.0 Oct 21, 2026 Changes in this version + const DefaultIndexURL + var ErrAlreadyInstalled = errors.New("a plugin with this name is already installed") + var ErrChecksum = errors.New(...) + var ErrDirectoryUnavailable = errors.New("the plugin directory index is unavailable") + var ErrDownload = errors.New("could not download the plugin") + var ErrIncompatible = errors.New("this plugin requires a newer goblog") + var ErrLoad = errors.New("the plugin failed to load") + var ErrNotDynamic = errors.New("this plugin type cannot be installed from the directory") + var ErrNotFound = errors.New("this plugin is not in the directory") + var ErrNotInstalled = errors.New("this plugin is not installed as a dynamic plugin") + var ErrUpToDate = errors.New("plugin is already at the directory's version") + var ErrWasmDisabled = errors.New(...) + var ErrWrite = errors.New(...) + func Compatible(running, min string) bool + func Newer(candidate, current string) bool + type Available struct + Compatible bool + Reason string + type Fetcher struct + func NewFetcher(client *http.Client) *Fetcher + func (f *Fetcher) Detail(name string) (*directory.Detail, error) + func (f *Fetcher) Ensure(indexURL string) + func (f *Fetcher) Entry(name string) (directory.Entry, bool) + func (f *Fetcher) FetchedAt() time.Time + func (f *Fetcher) Index() (raw []byte, entries []directory.Entry, ok bool) + func (f *Fetcher) Refresh(indexURL string) error + func (f *Fetcher) SetUserAgent(ua string) + type Installed struct + DisplayName string + Dynamic bool + Enabled bool + Health string + LatestVersion string + Name string + Path string + Runtime string + UpdateAvailable bool + Version string + type Installer struct + Client *http.Client + Dir string + Directory *Fetcher + Enabled bool + IndexURL func() string + Registry *plugin.Registry + Version string + WasmDir string + WasmEnabled bool + func (i *Installer) AutoUpdate(ctx context.Context) []Result + func (i *Installer) Install(ctx context.Context, name string) (Result, error) + func (i *Installer) Refresh() error + func (i *Installer) Status() Status + func (i *Installer) Uninstall(name string) error + func (i *Installer) Update(ctx context.Context, name string) (Result, error) + type Result struct + Message string + Name string + Version string + type Status struct + Available []Available + DirError string + DirWritable bool + DirectoryHosted bool + DirectoryURL string + DynamicEnabled bool + IndexError string + IndexFetchedAt string + Installed []Installed + WasmEnabled bool