Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExcludeMatchers ¶
type ExcludeMatchers struct {
// contains filtered or unexported fields
}
ExcludeMatchers is an instance for excluding matchers with template IDs
func New ¶
func New(values []string) *ExcludeMatchers
New returns a new exclude matchers instance
Wildcard and non-wildcard values are supported. <template-id>:<matcher-name> is the syntax. Wildcards can be specified using * character for either value.
Ex- http-missing-security-headers:* skips all http-missing-security-header templates
func (*ExcludeMatchers) Match ¶
func (e *ExcludeMatchers) Match(templateID, matcherName string) bool
Match returns true if templateID and matcherName matches the blocklist
Click to show internal directories.
Click to hide internal directories.