Documentation
¶
Index ¶
- Variables
- func ColorizeSeverity(value, severity string) string
- func IsOutputToTerminal(output io.Writer) bool
- func NewFileLicenseRenderer(buf *bytes.Buffer, isTerminal bool, severities []dbTypes.Severity) *fileLicenseRenderer
- func NewMisconfigRenderer(buf *bytes.Buffer, severities []dbTypes.Severity, ...) *misconfigRenderer
- func NewPkgLicenseRenderer(buf *bytes.Buffer, isTerminal bool, severities []dbTypes.Severity) *pkgLicenseRenderer
- func NewSecretRenderer(buf *bytes.Buffer, ansi bool, severities []dbTypes.Severity) *secretRenderer
- func NewSummaryRenderer(buf *bytes.Buffer, isTerminal bool, scanners types.Scanners) *summaryRenderer
- func NewVulnerabilityRenderer(buf *bytes.Buffer, isTerminal, tree, suppressed bool, ...) *vulnerabilityRenderer
- func RenderTarget(w io.Writer, target string, isTerminal bool)
- type LicenseScanner
- type MisconfigScanner
- type Options
- type Renderer
- type Scanner
- type SecretScanner
- type VulnerabilityScanner
- type Writer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ColorizeSeverity ¶
func IsOutputToTerminal ¶ added in v0.33.0
func NewFileLicenseRenderer ¶
func NewMisconfigRenderer ¶
func NewPkgLicenseRenderer ¶
func NewSecretRenderer ¶
func NewSummaryRenderer ¶ added in v0.60.0
Types ¶
type LicenseScanner ¶ added in v0.60.0
type LicenseScanner struct {
// contains filtered or unexported fields
}
func (LicenseScanner) Count ¶ added in v0.60.0
func (s LicenseScanner) Count(result types.Result) int
func (LicenseScanner) Header ¶ added in v0.60.0
func (s LicenseScanner) Header() string
func (LicenseScanner) String ¶ added in v0.60.0
func (s LicenseScanner) String() string
type MisconfigScanner ¶ added in v0.60.0
type MisconfigScanner struct {
// contains filtered or unexported fields
}
func (MisconfigScanner) Count ¶ added in v0.60.0
func (s MisconfigScanner) Count(result types.Result) int
func (MisconfigScanner) Header ¶ added in v0.60.0
func (s MisconfigScanner) Header() string
func (MisconfigScanner) String ¶ added in v0.60.0
func (s MisconfigScanner) String() string
type Options ¶ added in v0.60.0
type Options struct { Scanners types.Scanners Severities []dbTypes.Severity Output io.Writer // Show dependency origin tree Tree bool // Show suppressed findings ShowSuppressed bool // Show/hide summary/detailed tables TableModes []types.TableMode // For misconfigurations IncludeNonFailures bool Trace bool RenderCause []ftypes.ConfigType // For licenses LicenseRiskThreshold int IgnoredLicenses []string }
type Scanner ¶ added in v0.60.0
type Scanner interface { Header() string Alignment() table.Alignment // Count returns the number of findings, but -1 if the scanner is not applicable Count(result types.Result) int String() string // Required to show correct logs }
func NewScanner ¶ added in v0.60.0
type SecretScanner ¶ added in v0.60.0
type SecretScanner struct {
// contains filtered or unexported fields
}
func (SecretScanner) Header ¶ added in v0.60.0
func (s SecretScanner) Header() string
func (SecretScanner) String ¶ added in v0.60.0
func (s SecretScanner) String() string
type VulnerabilityScanner ¶ added in v0.60.0
type VulnerabilityScanner struct {
// contains filtered or unexported fields
}
func (VulnerabilityScanner) Count ¶ added in v0.60.0
func (s VulnerabilityScanner) Count(result types.Result) int
func (VulnerabilityScanner) Header ¶ added in v0.60.0
func (s VulnerabilityScanner) Header() string
func (VulnerabilityScanner) String ¶ added in v0.60.0
func (s VulnerabilityScanner) String() string
Click to show internal directories.
Click to hide internal directories.