Versions in this module Expand all Collapse all v0 v0.1.1 Apr 30, 2026 Changes in this version + var ErrInstallFailed = errors.New("widgetpack: install failed") + var ErrPackNotFound = errors.New("widgetpack: not found") + type InstallRequest struct + Name string + Ref string + Version string + type InstalledPack struct + Name string + SHA256 string + SignatureStatus string + Version string + type Installer struct + func NewInstaller(store *Store) *Installer + func (i *Installer) Install(ctx context.Context, req InstallRequest) (*InstalledPack, error) + type Store struct + func NewStore() *Store + func (s *Store) Add(_ context.Context, pack InstalledPack) error + func (s *Store) Get(_ context.Context, name, version string) (*InstalledPack, error) + func (s *Store) List(_ context.Context) ([]InstalledPack, error) + func (s *Store) Remove(_ context.Context, name, version string) error + type TrustPolicy struct + AllowUnsigned bool + AllowedSigners []string + func (tp *TrustPolicy) Verify(status string, _ []string) bool