Documentation
¶
Index ¶
- Constants
- Variables
- func ColorizeItem(input string) string
- func ColorizeMessage(moduleName string, method string, severity string, result string) string
- func DetermineSeverity(err error) string
- func FlushOutput()
- func HandleAWSError(debug bool, callName string, err error) error
- func MaskSecret(secret string) string
- func PrintAccessGranted(debug bool, serviceName, resource string, additionalInfo ...interface{})
- func PrintResult(debug bool, moduleName string, method string, result string, err error)
- func UnmarshalJSON(data []byte, v interface{}) error
Constants ¶
View Source
const ( ResetColor = "\033[0m" DisplayColor = "\033[33m" )
Variables ¶
View Source
var ConcurrentMode bool
ConcurrentMode buffers output instead of printing inline. Set to true during concurrent scans so progress display is not interrupted.
View Source
var Quiet bool
Quiet suppresses informational output when true (set by -quiet flag).
Functions ¶
func ColorizeItem ¶
func ColorizeMessage ¶
ColorizeMessage creates a colorized message string with the given components. Exported for use by formatters package.
func DetermineSeverity ¶
DetermineSeverity returns the severity based on the error received. Returns "hit" for nil errors (accessible services) and "info" for errors. Exported for use by formatters package.
func FlushOutput ¶
func FlushOutput()
FlushOutput prints all buffered messages and resets concurrent mode.
func MaskSecret ¶
func PrintAccessGranted ¶
func PrintResult ¶
func UnmarshalJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.