Versions in this module Expand all Collapse all v1 v1.3.0 Dec 1, 2026 Changes in this version + const DefaultAppsDir + const DefaultBaselinePath + const DefaultIntegrityDir + func Format(w io.Writer, r *Report, showOK bool) + func ManifestPath(dir, app, release string) string + func SaveBaseline(path string, b *Baseline) error + func WriteReleaseManifest(integrityDir, appsDir, app, release, releaseDir string) error + type Baseline struct + CreatedAt time.Time + Files map[string]string + Listeners []string + SSHKeys map[string][]string + Services []string + Users []string + func CollectBaseline(s System) Baseline + func LoadBaseline(path string) (Baseline, bool, error) + type Drift struct + Added []string + Modified []string + Removed []string + func VerifyRelease(m *Manifest, dir string) (Drift, error) + type Finding struct + Check string + Detail []string + Fix string + Severity Severity + Title string + type Manifest struct + App string + CreatedAt time.Time + Files map[string]string + Release string + func BuildManifest(app, release, dir string) (*Manifest, error) + type Options struct + AppsDir string + Baseline Baseline + HasBaseline bool + IntegrityDir string + LoginWindow time.Duration + type Report struct + BaselineAccepted bool + BaselineAt time.Time + BaselineCreated bool + Counts map[Severity]int + Findings []Finding + GeneratedAt time.Time + Hostname string + Verdict string + func Run(s System, o *Options) *Report + func (r *Report) ExitCode() int + func (r *Report) Finalize() + type Severity string + const Critical + const High + const Info + const Medium + const OK + type System struct + Country func(ip string) string + Now func() time.Time + Root string + Run func(name string, args ...string) (string, error) + func LocalSystem() System