presenter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Option

type Option int
const (
	UnknownPresenter Option = iota
	JSONPresenter
	TablePresenter
	CycloneDxPresenter
)

func ParseOption

func ParseOption(userStr string) Option

func (Option) String

func (o Option) String() string

type Presenter

type Presenter interface {
	Present(io.Writer) error
}

Presenter is the main interface other Presenters need to implement

func GetPresenter

func GetPresenter(option Option, results match.Matches, catalog *pkg.Catalog, theScope scope.Scope, metadataProvider vulnerability.MetadataProvider) Presenter

GetPresenter retrieves a Presenter that matches a CLI option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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