paths

package
v0.0.13-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 5 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

Overview

Package paths resolves on-disk locations for oac-daemon state under ~/.oac/daemon/<profile>/ — one subdir per profile so "test" and "prod" servers can be connected in parallel without colliding.

Files are 0o600, parent dir 0o700. These functions only resolve paths — callers do the I/O.

Index

Constants

View Source
const DefaultProfile = "default"

Variables

This section is empty.

Functions

func AuthFile

func AuthFile(profile string) (string, error)

AuthFile returns the absolute path to auth.json for a profile.

func LogFile

func LogFile(profile string) (string, error)

LogFile returns the absolute path to connect.log for a profile.

func PIDFile

func PIDFile(profile string) (string, error)

PIDFile returns the absolute path to connect.pid for a profile.

func ProfileDir

func ProfileDir(profile string) (string, error)

ProfileDir returns ~/.oac/daemon/<profile>. It is not created here.

func Root

func Root() (string, error)

Root returns ~/.oac. Honours OAC_RUNTIME_HOME for tests / sandbox environments without a writable home.

func StateDirectory added in v0.0.10

func StateDirectory() (string, error)

StateDirectory is the single process setting for private durable Runtime state. An explicit invalid value is an error, never a reason to use the default.

func ValidateProfile

func ValidateProfile(name string) error

ValidateProfile rejects names that wouldn't survive being used as a directory component.

Types

This section is empty.

Jump to

Keyboard shortcuts

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