matchpattern

package
v1.6.10 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(pattern string) string

Sanitize canonicalized the pattern for use by ToRegexp

func ToRegexp added in v1.5.0

func ToRegexp(pattern string) string

ToRegexp converts a MatchPattern field into a regexp string. It does not validate the pattern. It supports: * to select 0 or more DNS valid characters

func Validate

func Validate(pattern string) (matcher *regexp.Regexp, err error)

Validate ensures that pattern is a parseable matchPattern. It returns the regexp generated when validating.

Types

This section is empty.

Jump to

Keyboard shortcuts

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