util

package
v4.0.0-0.11.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 7 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 routev1.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