util

package
v3.11.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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