cache

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(root string, db DB) error

func SaveResults

func SaveResults(root string, findings []types.Finding) error

Types

type DB

type DB struct {
	// Path relative to repo root -> content hash (sha256 hex)
	Entries map[string]string `json:"entries"`
}

func Load

func Load(root string) (DB, error)

type ScanResults

type ScanResults struct {
	Findings  []types.Finding `json:"findings"`
	Timestamp time.Time       `json:"timestamp"`
	Root      string          `json:"root"`
	Count     int             `json:"count"`
}

func LoadResults

func LoadResults(root string) (ScanResults, error)

Jump to

Keyboard shortcuts

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