Versions in this module Expand all Collapse all v0 v0.2.0 Oct 3, 2026 v0.1.0 Oct 1, 2026 Changes in this version + type Darwin struct + func NewDarwinProvider() *Darwin + func (d *Darwin) Get(_ context.Context, _ string) (*Package, error) + func (d *Darwin) Install(_ context.Context, _ string) (*Result, error) + func (d *Darwin) List(_ context.Context) ([]Package, error) + func (d *Darwin) ListUpdates(_ context.Context) ([]Update, error) + func (d *Darwin) Remove(_ context.Context, _ string) (*Result, error) + func (d *Darwin) Update(_ context.Context) (*Result, error) + type Debian struct + func NewDebianProvider(logger *slog.Logger, execManager exec.Manager) *Debian + func (d *Debian) Get(ctx context.Context, name string) (*Package, error) + func (d *Debian) Install(ctx context.Context, name string) (*Result, error) + func (d *Debian) List(ctx context.Context) ([]Package, error) + func (d *Debian) ListUpdates(ctx context.Context) ([]Update, error) + func (d *Debian) Remove(ctx context.Context, name string) (*Result, error) + func (d *Debian) Update(ctx context.Context) (*Result, error) + type Linux struct + func NewLinuxProvider() *Linux + func (l *Linux) Get(_ context.Context, _ string) (*Package, error) + func (l *Linux) Install(_ context.Context, _ string) (*Result, error) + func (l *Linux) List(_ context.Context) ([]Package, error) + func (l *Linux) ListUpdates(_ context.Context) ([]Update, error) + func (l *Linux) Remove(_ context.Context, _ string) (*Result, error) + func (l *Linux) Update(_ context.Context) (*Result, error) + type Package struct + Description string + Name string + Size int64 + Status string + Version string + type Provider interface + Get func(ctx context.Context, name string) (*Package, error) + Install func(ctx context.Context, name string) (*Result, error) + List func(ctx context.Context) ([]Package, error) + ListUpdates func(ctx context.Context) ([]Update, error) + Remove func(ctx context.Context, name string) (*Result, error) + Update func(ctx context.Context) (*Result, error) + type Result struct + Changed bool + Error string + Name string + type Update struct + CurrentVersion string + Name string + NewVersion string