Documentation
¶
Overview ¶
Package macosrt holds the macOS runtime pieces that run on a Mac host: launchd units and doctor checks.
Index ¶
Constants ¶
View Source
const ( StatusOK = "ok" StatusWarn = "warn" StatusFail = "fail" StatusUnknown = "unknown" )
Check statuses match the doctor report vocabulary.
View Source
const (
// DefaultThrottleSeconds is the launchd respawn gap, so a missing identity does not spin.
DefaultThrottleSeconds = 30
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
GOOS string
GOARCH string
LookPath func(string) (string, error)
Sysctl func(name string) (string, error)
Version func() (string, error)
FreeBytes func(dir string) (int64, error)
PortFree func(port int) bool
DataDir string
// MinFreeGiB and MinMacOSMajor come from env at the call site.
MinFreeGiB int
MinMacOSMajor int
Ports []int
}
Deps are the host probes, injected so tests need no real Mac.
type Manager ¶
Manager installs units into the per-user LaunchAgents directory.
func (Manager) Install ¶
Install writes the plist atomically and (re)loads it. It returns the plist path.
Click to show internal directories.
Click to hide internal directories.