Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Debug is the most verbose logging level and will // report all logs Debug = "DEBUG" // Info level reports logrus.Info, logrus.Warn, and logrus.Error Info = "INFO" // Warn level reports logrus.Warn, and logrus.Error Warn = "WARN" // Error level reports ony error messages Error = "ERROR" // Off level turns off logs from logrus. instead the "stylized" // logging using terminal spinners will be used Off = "OFF" )
Variables ¶
This section is empty.
Functions ¶
func ShouldUseColor ¶
func ShouldUseColor() bool
ShouldUseColor will return true, if colored output should be used
func ShouldUseSpinner ¶
func ShouldUseSpinner() bool
ShouldUseSpinner will return true if the "stylized"
Types ¶
type Config ¶
type Config struct {
// Regexp is the configuration for the regular expression detector
Regexp RegexpConfig
// Entropy is the configuration for the string entropy detector
Entropy EntropyConfig
}
Config is the user configuration for the application
type EntropyConfig ¶
type EntropyConfig struct {
}
EntropyConfig configuration for the string entropy detector
type RegexpConfig ¶
type RegexpConfig struct {
// Patterns is the list of regular expressions
// patterns to search for
Patterns []detections.Pattern
}
RegexpConfig represents the configuration for the
Click to show internal directories.
Click to hide internal directories.