internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorConfig = errors.New("error decoding the configuration file")
View Source
var ErrorDecode = errors.New("error decoding a file")
View Source
var ErrorFileAccess = errors.New("file access error")
View Source
var ErrorFileExists = errors.New("file already exists")
View Source
var ErrorFileNotExists = errors.New("file does not exists")
View Source
var ErrorValidation = errors.New("report failed validation")

Functions

func ConfigAndReportFrom

func ConfigAndReportFrom(configFile string, reportFile string) (*config.Config, *report.Report, error)

func ConfigFromFile

func ConfigFromFile(configFile string) (*config.Config, error)

func GrypeScanFromFile

func GrypeScanFromFile(scanFilename string) (*grype.ScanReport, error)

func NewFile

func NewFile(dirOrFile string, defaultFilename string) (*os.File, error)

NewFile will create a file if dir with defaultFile name or the file

func ReportFromFile

func ReportFromFile(reportFile string) (*report.Report, error)

func ReportToFile

func ReportToFile(reportFilename string, r *report.Report) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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