runtimepaths

package
v0.24.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMacOSPrefix added in v0.13.0

func DefaultMacOSPrefix(machine string, optHomebrewExists bool) string

DefaultMacOSPrefix returns the preferred install prefix for macOS binaries and config. Apple Silicon defaults to /opt/homebrew; Intel defaults to /usr/local.

func ResolveStateDir

func ResolveStateDir(configPath, override string) string

ResolveStateDir returns the directory used to persist runtime state files. When no override is provided, state files live next to the config file.

func ResolveStatePath

func ResolveStatePath(configPath, override, filename string) string

Types

type LaunchdMode added in v0.13.0

type LaunchdMode string
const (
	LaunchdModeAgent  LaunchdMode = "agent"
	LaunchdModeDaemon LaunchdMode = "daemon"
)

type MacOSLaunchdLayout added in v0.13.0

type MacOSLaunchdLayout struct {
	Label      string
	PlistPath  string
	BinPath    string
	ConfigPath string
	StateDir   string
	LogDir     string
}

func DefaultMacOSLaunchdLayout added in v0.13.0

func DefaultMacOSLaunchdLayout(mode LaunchdMode, machine, userHome string, optHomebrewExists, skipBuild bool) MacOSLaunchdLayout

DefaultMacOSLaunchdLayout returns the recommended macOS paths for launchd installs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL