matchpattern

package
v1.6.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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

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