report

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set by the main package to inject the build version into reporters (SARIF, CycloneDX) that include tool metadata.

Functions

This section is empty.

Types

type CycloneDXReporter

type CycloneDXReporter struct{}

CycloneDXReporter writes output as a CycloneDX SBOM with vulnerability info.

func (*CycloneDXReporter) Write

func (r *CycloneDXReporter) Write(w io.Writer, data any) error

type HTMLReporter

type HTMLReporter struct{}

HTMLReporter writes output as a self-contained HTML report.

func (*HTMLReporter) Write

func (r *HTMLReporter) Write(w io.Writer, data any) error

type JSONReporter

type JSONReporter struct{}

JSONReporter writes output as indented JSON.

func (*JSONReporter) Write

func (r *JSONReporter) Write(w io.Writer, data any) error

type MarkdownReporter added in v1.2.5

type MarkdownReporter struct{}

MarkdownReporter writes output as Markdown tables, suitable for GitHub Step Summaries, PR comments, and documentation.

func (*MarkdownReporter) Write added in v1.2.5

func (r *MarkdownReporter) Write(w io.Writer, data any) error

type Reporter

type Reporter interface {
	Write(w io.Writer, data any) error
}

Reporter formats and writes command output.

func New

func New(format model.OutputFormat) Reporter

New returns a reporter for the given format.

type SARIFReporter

type SARIFReporter struct{}

SARIFReporter writes output in SARIF 2.1.0 format.

func (*SARIFReporter) Write

func (r *SARIFReporter) Write(w io.Writer, data any) error

type TableReporter

type TableReporter struct{}

TableReporter writes output as a human-readable table.

func (*TableReporter) Write

func (r *TableReporter) Write(w io.Writer, data any) error

Jump to

Keyboard shortcuts

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