Versions in this module Expand all Collapse all v0 v0.2.0 Nov 29, 2026 Changes in this version + var ErrNotFound = errors.New("admin: not found") + type HubRelease struct + NotesURL string + Version string + type Installer interface + Install func(ctx context.Context, repo, version, id string, report Reporter) (pluginID string, err error) + LatestHub func(ctx context.Context) (HubRelease, error) + LatestVersion func(ctx context.Context, repo string) (string, error) + Preview func(ctx context.Context, repo, version string) (PluginPreview, error) + Remove func(ctx context.Context, id string, keepData bool, report Reporter) error + Update func(ctx context.Context, id, version string, allowDowngrade bool, report Reporter) error + UpdateHub func(ctx context.Context, version string, allowDowngrade bool, report Reporter) error + type JobError struct + Code string + Message string + func (e *JobError) Error() string + type JobReport struct + Done int64 + Message string + Step string + Total int64 + type Options struct + Activity *audit.Writer + Commit string + Host PluginHost + Installer Installer + LocalName string + Log *slog.Logger + OnHomeName func(name string) + OwnerReady func(ctx context.Context) (bool, error) + Runtime PluginRuntime + StartedAt time.Time + Store *store.Store + Tunnel Tunnel + TunnelMode func() string + Version string + WithProgress func(ctx context.Context, fn func(plugins.Progress)) context.Context + type PluginHost interface + Logs func(id string) []string + type PluginPreview struct + AssetFound bool + Compatible bool + Description string + Homepage string + ID string + Installed ... + MinHubVersion string + PublishedAt *time.Time + Repo string + Title string + Version string + type PluginRuntime interface + Apply func(ctx context.Context) error + Restart func(ctx context.Context, id string) error + type Reporter func(JobReport) + type Server struct + func New(opts Options) (*Server, error) + func (s *Server) AccessReset(ctx context.Context, at time.Time, by string) + func (s *Server) Close() + func (s *Server) Commands(dataDir string) []adminsock.Command + func (s *Server) Routes(sessions core.Sessions, site core.Site) core.RouteRegistrar + type Tunnel interface + Check func(ctx context.Context) tunnel.Status + Restart func() error + Status func() tunnel.Status