Versions in this module Expand all Collapse all v0 v0.0.10 Jul 2, 2026 Changes in this version + func AsExecError(err error, target **exec.Error) bool + func AsExitError(err error, target **exec.ExitError) bool + func ClearHealthURLFile(alias string, root state.Root) + func DefaultProfileDir(lookupEnv func(string) (string, bool)) (string, error) + func LogPath(alias string, root state.Root) string + func LogTail(pathValue string, maxLines int) string + func NormalizeHealthBaseURL(rawHealthURL string) string + func NormalizeProfileName(profileName string, alias string) (string, error) + func PIDIsRunning(pid int) bool + func ParsePortFromHealthURL(raw string) int + func ProfileHealthURLFile(alias string, root state.Root) string + func ReadHealthURL(path string) string + func ResolveProfileDir(profileDir string, lookupEnv func(string) (string, bool)) (string, error) + func TerminateProcess(pid int) error + func TmuxAvailable(rt Runtime) (bool, error) + func TmuxHasSessionName(rt Runtime, sessionName string) (bool, error) + func TmuxSessionName(alias string, root state.Root) string + func TunnelClientArgs(tunnelClientBin string, profileName string, profileDir string) []string + func TunnelClientCommand(tunnelClientBin string, profileName string, profileDir string) string + func WaitForProcessExit(pid int) bool + func WriteRuntimeProfile(alias string, profileName string, tunnelID string, baseURL string, ...) (string, error) + type CompletedProcess struct + ReturnCode int + Stderr string + Stdout string + func StartTmux(rt Runtime, sessionName string, tunnelClientBin string, profileName string, ...) (CompletedProcess, error) + func StopTmux(rt Runtime, sessionName string) (CompletedProcess, error) + type EndpointProbe struct + Body string + Error string + OK bool + Status int + URL string + type HealthProbe struct + BaseURL string + Healthz EndpointProbe + Readyz EndpointProbe + func ProbeHealthEndpoints(rawHealthURL string) HealthProbe + type LaunchResult struct + AlreadyRunning bool + Command string + ExitCode *int + HealthURL string + Healthy bool + Launched bool + LogPath string + LogTail string + Mode string + PID int + Ready bool + Running bool + SessionName string + Started bool + func StartOrReuse(rt Runtime, alias string, profileName string, profileDir string, ...) (LaunchResult, error) + type Process interface + PID func() int + Poll func() *int + type Runner func(args []string, env map[string]string) (CompletedProcess, error) + type RunnerWithInput func(args []string, env map[string]string, stdin string) (CompletedProcess, error) + type Runtime struct + Run Runner + RunInput RunnerWithInput + Start Starter + func DefaultRuntime() Runtime + type RuntimeObservation struct + HealthProbe HealthProbe + HealthURL string + Healthy bool + Ready bool + Running bool + func WaitForRuntimeHealth(rt Runtime, alias string, root state.Root, mode string, pid int, ...) RuntimeObservation + type Starter func(args []string, env map[string]string, logPath string) (Process, error) + type Target struct + Kind string + Value string