Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InfoStyle defines the style used for informational output. InfoStyle = lipgloss.NewStyle().Foreground(lipgloss.ANSIColor(11)) // SuccessStyle defines the style used for success output. SuccessStyle = lipgloss.NewStyle().Foreground(lipgloss.ANSIColor(10)) // ErrorStyle defines the style used for error output. ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.ANSIColor(9)) )
View Source
var ( // BackoffStrategyValNone ... RetryStrategyValNever = &backoff.StopBackOff{} // RetryStrategyValConstant ... RetryStrategyValConstant = backoff.WithMaxRetries(&backoff.ConstantBackOff{Interval: 5 * time.Second}, 5) // RetryStrategyValExponential ... RetryStrategyValExponential = backoff.NewExponentialBackOff() // RetryStrategyValAlways ... RetryStrategyValAlways = &backoff.ZeroBackOff{} )
Functions ¶
Types ¶
type RetryStrategy ¶
type RetryStrategy struct {
Val backoff.BackOff
}
RetryStrategy wraps a retry strategy.
func (*RetryStrategy) Set ¶
func (bo *RetryStrategy) Set(s string) error
Set sets the wrapped retry strategy.
func (RetryStrategy) String ¶
func (bo RetryStrategy) String() string
String returns the wrapped retry strategy.
func (*RetryStrategy) Type ¶
func (*RetryStrategy) Type() string
Type returns the name of the backoff retry type.
type RulesPreset ¶
type RulesPreset struct {
Val []detect.GitleaksRuleFunction
}
RulesPreset wraps a rules preset.
func (*RulesPreset) Set ¶
func (rp *RulesPreset) Set(s string) error
Set sets the wrapped rules preset.
func (RulesPreset) String ¶
func (rp RulesPreset) String() string
String returns the wrapped rules preset.
func (*RulesPreset) Type ¶
func (*RulesPreset) Type() string
Type returns the name of the rules preset type.
Click to show internal directories.
Click to hide internal directories.