Documentation
¶
Index ¶
- func AddCommonArgs(cmd *cobra.Command)
- func ClearValues()
- func ExitIfFindings(r *reportx.Report, scansFiltered bool)
- func FilterScans(scans []string) []string
- func GetExcludeScans() []string
- func GetIncludeScans() []string
- func GetMinSeverity() *float64
- func GetNoProgress() bool
- func GetOnlyScansAboveThreshold() bool
- func GetSeverityThreshold() float64
- func NewHTTPClientFromCmd(cmd *cobra.Command) (*request.Client, error)
- func NewProgressBar(max int) *progressbar.ProgressBar
- func SetOnlyScansAboveThreshold(b bool)
- func SetSeverityThreshold(t float64)
- func WriteReport(ctx context.Context, cmd *cobra.Command, r *reportx.Report) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonArgs ¶
func ClearValues ¶ added in v0.8.5
func ClearValues()
func ExitIfFindings ¶ added in v0.10.0
ExitIfFindings exits with status 1 if r has findings. When scansFiltered is true (the caller explicitly selected scans via --scans), any finding exits, ignoring the severity threshold. Otherwise, only findings meeting the severity threshold exit.
func FilterScans ¶ added in v0.9.0
func GetExcludeScans ¶ added in v0.7.3
func GetExcludeScans() []string
func GetIncludeScans ¶ added in v0.7.3
func GetIncludeScans() []string
func GetMinSeverity ¶ added in v0.10.0
func GetMinSeverity() *float64
GetMinSeverity returns a *float64 set to GetSeverityThreshold() when GetOnlyScansAboveThreshold() is true, for use as scan.ScanOptions.MinSeverity; nil otherwise (no severity-based check filtering).
func GetNoProgress ¶ added in v0.8.1
func GetNoProgress() bool
func GetOnlyScansAboveThreshold ¶ added in v0.10.0
func GetOnlyScansAboveThreshold() bool
func GetSeverityThreshold ¶ added in v0.8.0
func GetSeverityThreshold() float64
func NewHTTPClientFromCmd ¶ added in v0.9.0
func NewProgressBar ¶
func NewProgressBar(max int) *progressbar.ProgressBar
func SetOnlyScansAboveThreshold ¶ added in v0.10.0
func SetOnlyScansAboveThreshold(b bool)
func SetSeverityThreshold ¶ added in v0.9.0
func SetSeverityThreshold(t float64)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.