Documentation
¶
Index ¶
- Constants
- func GenerateHTML(results []core.Result, filename string) error
- type BeautifulReporter
- func (r *BeautifulReporter) AddResult(result core.Result)
- func (r *BeautifulReporter) PrintBanner()
- func (r *BeautifulReporter) PrintFooter()
- func (r *BeautifulReporter) PrintPluginComplete(pluginName string, duration time.Duration, findingCount int)
- func (r *BeautifulReporter) PrintPluginStart(pluginName string, ruleCount int)
- func (r *BeautifulReporter) PrintResults()
- func (r *BeautifulReporter) PrintSection(title string)
- func (r *BeautifulReporter) PrintSummary()
- type ReportData
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorRed = "\033[31m" ColorGreen = "\033[32m" ColorYellow = "\033[33m" ColorBlue = "\033[34m" ColorMagenta = "\033[35m" ColorCyan = "\033[36m" ColorWhite = "\033[37m" ColorBold = "\033[1m" ColorDim = "\033[2m" )
ANSI 颜色代码
View Source
const ( IconSuccess = "✓" IconWarning = "⚠" IconError = "✗" IconInfo = "ℹ" IconCritical = "☠" IconScan = "🔍" IconShield = "🛡" )
图标
View Source
const Banner = `` /* 1609-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BeautifulReporter ¶
type BeautifulReporter struct {
// contains filtered or unexported fields
}
func NewBeautifulReporter ¶
func NewBeautifulReporter() *BeautifulReporter
func (*BeautifulReporter) AddResult ¶
func (r *BeautifulReporter) AddResult(result core.Result)
func (*BeautifulReporter) PrintBanner ¶
func (r *BeautifulReporter) PrintBanner()
func (*BeautifulReporter) PrintFooter ¶
func (r *BeautifulReporter) PrintFooter()
func (*BeautifulReporter) PrintPluginComplete ¶
func (r *BeautifulReporter) PrintPluginComplete(pluginName string, duration time.Duration, findingCount int)
func (*BeautifulReporter) PrintPluginStart ¶
func (r *BeautifulReporter) PrintPluginStart(pluginName string, ruleCount int)
func (*BeautifulReporter) PrintResults ¶
func (r *BeautifulReporter) PrintResults()
func (*BeautifulReporter) PrintSection ¶
func (r *BeautifulReporter) PrintSection(title string)
func (*BeautifulReporter) PrintSummary ¶
func (r *BeautifulReporter) PrintSummary()
Click to show internal directories.
Click to hide internal directories.