Documentation ¶
Index ¶
- Variables
- func ColorizeSeverity(value, severity string) string
- func IsOutputToTerminal(output io.Writer) bool
- func NewFileLicenseRenderer(result types.Result, isTerminal bool, severities []dbTypes.Severity) fileLicenseRenderer
- func NewMisconfigRenderer(result types.Result, severities []dbTypes.Severity, ...) *misconfigRenderer
- func NewPkgLicenseRenderer(result types.Result, isTerminal bool, severities []dbTypes.Severity) pkgLicenseRenderer
- func NewSecretRenderer(target string, secrets []types.DetectedSecret, ansi bool, ...) *secretRenderer
- func NewVulnerabilityRenderer(result types.Result, isTerminal, tree, suppressed bool, ...) *vulnerabilityRenderer
- func RenderTarget(w io.Writer, target string, isTerminal bool)
- type Renderer
- type Writer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ColorizeSeverity ¶
func IsOutputToTerminal ¶
func NewFileLicenseRenderer ¶
func NewMisconfigRenderer ¶
func NewPkgLicenseRenderer ¶
func NewSecretRenderer ¶
Types ¶
type Writer ¶
type Writer struct { Severities []dbTypes.Severity Output io.Writer // Show dependency origin tree Tree bool // Show suppressed findings ShowSuppressed bool // For misconfigurations IncludeNonFailures bool Trace bool // For licenses LicenseRiskThreshold int IgnoredLicenses []string }
Writer implements Writer and output in tabular form
Click to show internal directories.
Click to hide internal directories.