dag

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeHosts

func ComputeHosts(routeHostnames []gatewayapi_v1alpha2.Hostname, rawHostname *gatewayapi_v1alpha2.Hostname) ([]gatewayapi_v1alpha2.Hostname, []error)

ComputeHosts returns the set of hostnames to match for a route. Both the result and the error slice should be considered:

  • if the set of hostnames is non-empty, it should be used for matching (may be ["*"]).
  • if the set of hostnames is empty, there was no intersection between the listener hostname and the route hostnames, and the route should be marked "Accepted: false".
  • if the list of errors is non-empty, one or more hostnames was syntactically invalid and some condition should be added to the route. This shouldn't be possible because of kubebuilder+admission webhook validation but we're being defensive here.

func IsValidHostname

func IsValidHostname(hostname string) error

IsValidHostname validates that a given hostname is syntactically valid. It returns nil if valid and an error if not valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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