audit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Timestamp    string `json:"timestamp"`
	User         string `json:"user"`
	Commit       string `json:"commit,omitempty"`
	Command      string `json:"command"`
	FilesScanned int    `json:"files_scanned"`
	TotalIssues  int    `json:"total_issues"`
	TrustScore   int    `json:"trust_score"`
	Errors       int    `json:"errors"`
	Warnings     int    `json:"warnings"`
	Infos        int    `json:"infos"`
	Status       string `json:"status"`
}

type Trail

type Trail struct {
	// contains filtered or unexported fields
}

func New

func New(path string) *Trail

func (*Trail) Query

func (t *Trail) Query(limit int, status string, since string) ([]Entry, error)

func (*Trail) Record

func (t *Trail) Record(command string, filesScanned, totalIssues, trustScore, errors, warnings, infos int, status string) (Entry, error)

func (*Trail) Summary

func (t *Trail) Summary() (totalScans int, avgScore int, totalIssues int, err error)

Jump to

Keyboard shortcuts

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