reporter

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReportFormats = []string{"basic", "detailed", "json"}

Functions

This section is empty.

Types

type Option

type Option func(r *Reporter)

func WithFormat

func WithFormat(c string) Option

type Reporter

type Reporter struct {
	Ctx context.Context

	Docs   []sbom.Document
	Scores []scorer.Scores
	Paths  []string

	//optional params
	Format string
}

func NewReport

func NewReport(ctx context.Context, doc []sbom.Document, scores []scorer.Scores, paths []string, opts ...Option) *Reporter

func (*Reporter) Report

func (r *Reporter) Report()

func (*Reporter) ShareReport

func (r *Reporter) ShareReport() (string, error)

Jump to

Keyboard shortcuts

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