util

package
v3.10.15-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenCertificateHostName

func GenCertificateHostName(hostname string, wildcard bool) string

GenCertificateHostName generates the host name to use for serving/certificate matching. If wildcard is set, a wildcard host name (*.<subdomain>) is generated.

func GenerateBackendNamePrefix

func GenerateBackendNamePrefix(termination routeapi.TLSTerminationType) string

GenerateBackendNamePrefix generates the backend name prefix based on the termination.

func GenerateRouteRegexp

func GenerateRouteRegexp(hostname, path string, wildcard bool) string

GenerateRouteRegexp generates a regular expression to match route hosts (and paths if any).

func SortMapPaths

func SortMapPaths(data []string, prefix string) []string

SortMapPaths sorts the data by groups with any matching prefixes sorted at the end. The data in each group is reverse sorted.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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