Versions in this module Expand all Collapse all v0 v0.3.0 Nov 27, 2026 Changes in this version + var ErrExists = errors.New("the config file exists: --force replaces it") + var ErrNotRoot = errors.New("run this as root: the service and its config are root's") + var ErrPlatform = errors.New("osapi installs a service on Linux (systemd) and macOS (launchd) only") + var Group = command.Register(...) + type Deps struct + Binary func() (string, error) + ConfigFile string + EUID func() int + FS avfs.VFS + GOOS string + KeyDir string + Run func(ctx context.Context, name string, args ...string) error + Wait func(ctx context.Context, file string) bool + type InstallInput struct + Force bool + Join string + Labels map[string]string + type InstallOutput struct + ConfigFile string + Joined bool + Next string + Service string + func Install(ctx context.Context, d Deps, in InstallInput) (InstallOutput, error) + type UninstallInput struct + Purge bool + type UninstallOutput struct + Removed []string + func Uninstall(ctx context.Context, d Deps, in UninstallInput) (UninstallOutput, error)