excludematchers

package
v3.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MIT Imports: 1 Imported by: 2

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL