Documentation
¶
Index ¶
- Constants
- func ColorForSeverity(severity string) func(string, ...interface{}) string
- func EmojiForSeverity(severity string) string
- func PrintAuditComplete(auditorName string, findingsCount int)
- func PrintAuditStart(auditorName string)
- func PrintDebug(message string)
- func PrintError(message string, err error)
- func PrintFinding(finding types.Finding)
- func PrintProgress(message string)
- func PrintReportLocation(filepath string)
- func PrintStartupBanner()
- func PrintSuccess(message string)
- func PrintSummary(report types.AuditReport)
- func PrintWarning(message string)
- type ProgressIndicator
Constants ¶
const ( RocketEmoji = "🚀" WarningEmoji = "⚠️" CheckEmoji = "✅" CrossEmoji = "❌" LockEmoji = "🔒" MagnifierEmoji = "🔍" FolderEmoji = "📁" GearEmoji = "⚙️" ChartEmoji = "📊" ShieldEmoji = "🛡️" TimeEmoji = "⏱️" CatEmoji = "🐱" )
Emoji constants
Variables ¶
This section is empty.
Functions ¶
func ColorForSeverity ¶
ColorForSeverity returns the appropriate color function for a severity level
func EmojiForSeverity ¶
EmojiForSeverity returns the appropriate emoji for a severity level
func PrintAuditComplete ¶
PrintAuditComplete prints the completion of an audit section
func PrintAuditStart ¶
func PrintAuditStart(auditorName string)
PrintAuditStart prints the start of an audit section
func PrintFinding ¶
PrintFinding prints a single finding with appropriate formatting
func PrintReportLocation ¶
func PrintReportLocation(filepath string)
PrintReportLocation prints where the report was saved
func PrintStartupBanner ¶
func PrintStartupBanner()
PrintStartupBanner prints the application startup banner
func PrintSummary ¶
func PrintSummary(report types.AuditReport)
PrintSummary prints the audit summary
Types ¶
type ProgressIndicator ¶
type ProgressIndicator struct {
// contains filtered or unexported fields
}
ProgressIndicator represents a progress indicator for long-running operations
func NewProgressIndicator ¶
func NewProgressIndicator(message string) *ProgressIndicator
NewProgressIndicator creates a new progress indicator
func (*ProgressIndicator) Start ¶
func (p *ProgressIndicator) Start()
Start starts showing the progress indicator
func (*ProgressIndicator) Stop ¶
func (p *ProgressIndicator) Stop()
Stop stops the progress indicator