Versions in this module Expand all Collapse all v0 v0.16.0 Oct 21, 2026 Changes in this version + const DefaultIndexURL + var ErrActive = errors.New("the active theme cannot be removed; activate another theme first") + var ErrAlreadyInstalled = errors.New("a theme with this name is already installed") + var ErrBuiltin = errors.New("built-in themes cannot be installed, updated or removed") + var ErrChecksum = errors.New(...) + var ErrDirectoryUnavailable = errors.New("the theme directory index is unavailable") + var ErrDownload = errors.New("could not download the theme") + var ErrIncompatible = errors.New("this theme requires a newer goblog") + var ErrLoad = errors.New("the theme failed to load") + var ErrNotFound = errors.New("this theme is not in the directory") + var ErrNotInstalled = errors.New("this theme is not installed") + var ErrNotManaged = errors.New(...) + var ErrNotTheme = errors.New("this directory entry is not a theme") + var ErrUpToDate = errors.New("theme is already at the directory's version") + var ErrWrite = errors.New(...) + func ScreenshotPath(name string) string + type Available struct + Compatible bool + Reason string + type Installed struct + Active bool + Builtin bool + DisplayName string + LatestVersion string + Name string + ScreenshotURL string + UpdateAvailable bool + Version string + type Installer struct + Activate func(name string) error + ActiveTheme func() string + Client *http.Client + Dir string + Directory *pinstaller.Fetcher + IndexURL func() string + Version string + func (i *Installer) ActivateTheme(name string) error + 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) Sweep() error + 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 + Active string + Available []Available + DirError string + DirWritable bool + DirectoryURL string + IndexError string + IndexFetchedAt string + Installed []Installed