Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableFormats = []format{
jsonFormat,
tableFormat,
cycloneDXFormat,
templateFormat,
}
AvailableFormats is a list of presenter format options available to users.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.10.0
type Config struct {
// contains filtered or unexported fields
}
Config is the presenter domain's configuration data structure.
func ValidatedConfig ¶ added in v0.10.0
ValidatedConfig returns a new, validated presenter.Config. If a valid Config cannot be created using the given input, an error is returned.
type Presenter ¶
Presenter is the main interface other Presenters need to implement
func GetPresenter ¶
func GetPresenter(presenterConfig Config, matches match.Matches, ignoredMatches []match.IgnoredMatch, packages []pkg.Package, context pkg.Context, metadataProvider vulnerability.MetadataProvider, appConfig interface{}, dbStatus interface{}) Presenter
GetPresenter retrieves a Presenter that matches a CLI option
Click to show internal directories.
Click to hide internal directories.