Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrInstallFailed = errors.New("widgetpack: install failed")
ErrInstallFailed is returned when pack installation fails.
var ErrPackNotFound = errors.New("widgetpack: not found")
ErrPackNotFound is returned when a pack is not found.
Functions ¶
This section is empty.
Types ¶
type InstallRequest ¶
type InstallRequest struct {
Ref string // OCI reference, e.g. "registry.example.com/bar-widgets:1.0.0"
Name string
Version string
}
InstallRequest carries the parameters for a pack installation.
type InstalledPack ¶
type InstalledPack struct {
Name string
Version string
SHA256 string
SignatureStatus string // "verified", "unsigned", "invalid", "expired"
}
InstalledPack describes an installed widget pack.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer handles OCI pull + verify + store. OCI pull and cosign verification are deferred to a future implementation; this stub registers the pack metadata immediately.
func NewInstaller ¶
NewInstaller creates a new pack installer.
func (*Installer) Install ¶
func (i *Installer) Install(ctx context.Context, req InstallRequest) (*InstalledPack, error)
Install registers a widget pack. Currently a stub — real OCI/cosign implementation deferred.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the on-disk widget pack registry. The current implementation is in-memory; production will use SQLite.
func (*Store) Add ¶
func (s *Store) Add(_ context.Context, pack InstalledPack) error
Add registers an installed pack.
type TrustPolicy ¶
TrustPolicy defines which pack signers are trusted.