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 paired in parallel without colliding.
Files are 0o600, parent dir 0o700. These functions only resolve paths — callers do the I/O.
Index ¶
- Constants
- func AuthFile(profile string) (string, error)
- func EnsureProfileDir(profile string) (string, error)
- func LogFile(profile string) (string, error)
- func PIDFile(profile string) (string, error)
- func ProfileDir(profile string) (string, error)
- func Root() (string, error)
- func SessionsFile(profile string) (string, error)
- func ValidateProfile(name string) error
Constants ¶
const DefaultProfile = "default"
Variables ¶
This section is empty.
Functions ¶
func EnsureProfileDir ¶
EnsureProfileDir mkdirs the profile dir at mode 0o700 and returns its path. Idempotent.
func ProfileDir ¶
ProfileDir returns ~/.oac/daemon/<profile>. NOT created; use EnsureProfileDir.
func Root ¶
Root returns ~/.oac. Honours OAC_RUNTIME_HOME for tests / sandbox environments without a writable home.
func SessionsFile ¶
SessionsFile returns the absolute path to sessions.json.
func ValidateProfile ¶
ValidateProfile rejects names that wouldn't survive being used as a directory component.
Types ¶
This section is empty.