Versions in this module Expand all Collapse all v1 v1.171.0 Dec 3, 2026 Changes in this version + func Register(mux *http.ServeMux, wrap func(http.Handler) http.Handler, cfg Config) + type AutomationView struct + Kind string + Loaders map[string]int + Name string + Reason string + Status string + Version int + type Config struct + Audit middleware.AuditLogger + Author func(*http.Request) string + CatalogExists func(ctx context.Context, id string) bool + Connections func(ctx context.Context) map[string][]Connection + Knowledge Knowledge + Mutable bool + Now func() time.Time + Pages Pages + Service Service + type Connection struct + Name string + Trusted bool + type Knowledge interface + CurrentAutomations func(ctx context.Context, catalogs []string) ([]apiknowledge.VendorAutomation, error) + Delete func(ctx context.Context, catalog string) (bool, error) + Get func(ctx context.Context, catalog string) (*apiknowledge.Source, error) + History func(ctx context.Context, catalog string, limit int) ([]apiknowledge.Change, error) + Items func(ctx context.Context, catalog string) ([]apiknowledge.Item, error) + Loaders func(ctx context.Context, catalog, name string) (map[int]int, error) + Pending func(ctx context.Context, catalog string) (*apiknowledge.Change, error) + Put func(ctx context.Context, catalog string, set apiknowledge.Settings, by string) error + type PageView struct + Hidden bool + Reason string + Slug string + Status string + Title string + Version int + type Pages interface + HideVendorPage func(ctx context.Context, catalog, slug string) (bool, error) + RestoreVendorPage func(ctx context.Context, catalog, slug string) (bool, error) + VendorPages func(ctx context.Context, catalog string) ([]knowledgepage.VendorPageState, error) + type Service interface + Accept func(ctx context.Context, catalog, by string) (apiknowledge.Result, error) + Check func(ctx context.Context, catalog, trigger, by string) (apiknowledge.Result, error) + Discard func(ctx context.Context, catalog, by string) error + type SettingsRequest struct + Hold bool + Interval *int + URL *string + type View struct + Automations []AutomationView + Catalog string + Configured bool + Connections []Connection + Entry string + History []apiknowledge.Change + Hold bool + Interval int + LastAppliedAt *time.Time + LastCheckedAt *time.Time + LastError string + LastResult string + Pages []PageView + Pending *apiknowledge.Change + Trusted bool + URL string + UpdatedBy string + Vendor string