Versions in this module Expand all Collapse all v1 v1.3.0 Nov 8, 2026 Changes in this version + func BrowserHeadersPath(projectDir string) string + func ClearCredentials(projectDir, env string) error + func HeadersPath(projectDir string) string + func MarkNoticeShown(projectDir string, at time.Time) error + func NoticePath(projectDir string) string + func NoticeShown(projectDir string) bool + func Path(projectDir, env string) string + func StatePath(projectDir, env string) string + func Write(projectDir string, rec Record) error + func WriteHeaders(projectDir, processToken, browserToken string) error + func WriteState(projectDir string, st State) error + type Record struct + Backend string + DecidedAt time.Time + Endpoint string + Env string + EnvironmentID string + InstanceID string + InstanceLabel string + InstanceUser string + OrgID string + Reason string + func Read(projectDir, env string) (rec Record, ok bool, err error) + type Retention struct + BrowserDays int + LogsDays int + MetricsDays int + TracesDays int + type State struct + Env string + ExpiresAt time.Time + RenewError string + RenewedAt time.Time + Retention Retention + func ReadState(projectDir, env string) (st State, ok bool, err error)