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.SecretFinding, ansi bool, ...) *secretRenderer
- func NewVulnerabilityRenderer(result types.Result, isTerminal, tree bool, severities []dbTypes.Severity) *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 // We have to show a message once about using the '-format json' subcommand to get the full pkgPath ShowMessageOnce *sync.Once // 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.