cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source

Variables

View Source
var ErrorAPI = errors.New("request API")
View Source
var ErrorEncoding = errors.New("encoding")
View Source
var ErrorFileAccess = errors.New("file access")
View Source
var ErrorValidation = errors.New("validation")

Functions

func NewBundleCmd added in v0.0.8

func NewBundleCmd() *cobra.Command

func NewConfigCmd added in v0.0.2

func NewConfigCmd() *cobra.Command

func NewEPSSCmd added in v0.0.8

func NewEPSSCmd(service EPSSService) *cobra.Command

func NewExportCmd added in v0.0.2

func NewExportCmd(service DDExportService, timeout time.Duration, engagement defectdojo.EngagementQuery) *cobra.Command

func NewPrintCommand added in v0.0.8

func NewPrintCommand(decodeTimeout time.Duration, pipedFile *os.File) *cobra.Command

NewPrintCommand will pretty print a report file table, r can be piped input from standard out

func NewRootCommand added in v0.0.8

func NewRootCommand(config CLIConfig) *cobra.Command

func NewValidateCmd added in v0.0.2

func NewValidateCmd(decodeTimeout time.Duration) *cobra.Command

func ParseAndFPrint added in v0.0.8

func ParseAndFPrint(r io.Reader, w io.Writer, timeout time.Duration) error

func ParseAndValidate added in v0.0.8

func ParseAndValidate(r io.Reader, config artifact.Config, timeout time.Duration) error

Types

type CLIConfig added in v0.0.8

type CLIConfig struct {
	AutoDecoderTimeout time.Duration
	Version            string
	PipedInput         *os.File
	DefaultReport      string
	EPSSService        EPSSService
	DDExportService    DDExportService
	DDEngagement       defectdojo.EngagementQuery
	DDExportTimeout    time.Duration
}

type DDExportService added in v0.0.8

type DDExportService interface {
	Export(context.Context, io.Reader, defectdojo.EngagementQuery, defectdojo.ScanType) error
}

type EPSSService added in v0.0.8

type EPSSService interface {
	Get([]epss.CVE) ([]epss.Data, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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