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) Reboot(_ context.Context, _ Opts) (*Result, error) + func (d *Darwin) Shutdown(_ context.Context, _ Opts) (*Result, error) + type Debian struct + func NewDebianProvider(logger *slog.Logger, execManager exec.Manager) *Debian + func (d *Debian) Reboot(ctx context.Context, opts Opts) (*Result, error) + func (d *Debian) Shutdown(ctx context.Context, opts Opts) (*Result, error) + type Linux struct + func NewLinuxProvider() *Linux + func (l *Linux) Reboot(_ context.Context, _ Opts) (*Result, error) + func (l *Linux) Shutdown(_ context.Context, _ Opts) (*Result, error) + type Opts struct + Delay int + Message string + type Provider interface + Reboot func(ctx context.Context, opts Opts) (*Result, error) + Shutdown func(ctx context.Context, opts Opts) (*Result, error) + type Result struct + Action string + Changed bool + Delay int + Error string