audit

package
v1.34.18 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package audit inspects resolved project supply-chain metadata.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	ID        string `json:"id"`
	Severity  string `json:"severity"`
	Certainty string `json:"certainty"`
	Message   string `json:"message"`
	Package   string `json:"package,omitempty"`
}

type Metadata

type Metadata struct {
	Offline   bool   `json:"offline"`
	Source    string `json:"source"`
	Timestamp string `json:"timestamp,omitempty"`
}

type Options

type Options struct {
	Offline   bool
	Source    string
	Timestamp time.Time
}

type Report

type Report struct {
	SchemaVersion int       `json:"schemaVersion"`
	Metadata      Metadata  `json:"metadata"`
	Disclaimer    string    `json:"disclaimer"`
	Findings      []Finding `json:"findings"`
}

func Inspect

func Inspect(project *projectmodel.Project, opts Options) Report

Jump to

Keyboard shortcuts

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