presenter

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 8 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, matches match.Matches, packages []pkg.Package, context pkg.Context, 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