Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lock ¶
Lock serializes live processes and cleanup. The OS releases it on process exit. The empty lock file remains, so a crash never requires guessing stale ownership.
func PrivateRoot ¶
PrivateRoot returns the OS-private cache root used for live-test state.
func PublishProfile ¶
PublishProfile publishes the manifest first and an atomic digest marker last. Callers must finish clone validation and close the database before publishing.
func ValidateRunDir ¶
ValidateRunDir requires an immediate child of the private runs directory. Existing symlink or junction components are rejected, even within the root. The result uses PrivateRoot's spelling while preserving the run identifier.
Types ¶
type Profile ¶
type Profile struct {
Version int `json:"version"`
RunID string `json:"runId"`
RunDir string `json:"runDir"`
DBPath string `json:"dbPath"`
ConfigPath string `json:"configPath"`
DefaultTrackers []string `json:"defaultTrackers"`
SourceKind string `json:"sourceKind"`
SourceFingerprint string `json:"sourceFingerprint"`
}
Profile identifies a private, successfully constructed live-test profile. Its manifest contains paths and tracker IDs, never configuration secrets.
func LoadProfile ¶
LoadProfile refuses incomplete, relocated, or path-escaped profiles.
func ProfileForDB ¶
ProfileForDB resolves a ready profile for its database, allowing equivalent filesystem paths.