Versions in this module Expand all Collapse all v0 v0.2.0 Nov 29, 2026 Changes in this version + var ErrUnknownPlugin = errors.New("unknown plugin") + func WithProgress(ctx context.Context, fn func(Progress)) context.Context + type Host struct + HubVersion string + func New(specs []Spec, dataDir string, log *slog.Logger) (*Host, error) + func (h *Host) Add(s Spec) error + func (h *Host) Await(ctx context.Context, id string) error + func (h *Host) Call(ctx context.Context, caller hub.Caller, name string, args json.RawMessage) (hub.Result, error) + func (h *Host) Changed() <-chan struct{} + func (h *Host) Close() + func (h *Host) Instructions() string + func (h *Host) Logs(id string) []string + func (h *Host) PluginInstructions(id string) string + func (h *Host) Remove(id string) error + func (h *Host) Restart(id string) error + func (h *Host) Start(ctx context.Context) + func (h *Host) Status() []hub.PluginStatus + func (h *Host) Sync(specs []Spec) error + func (h *Host) Tools(audience hub.Audience) []hub.Tool + type Progress struct + I18n map[string]string + Message string + Progress float64 + Total float64 + type Spec struct + Command []string + ID string