utils

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllowedListeners

func GetAllowedListeners(
	parentRef gwv1beta1.ParentReference,
	routeGvk schema.GroupVersionKind,
	routeGeneration int64,
	validListeners []gwpkg.Listener,
	routeParentStatus gwv1beta1.RouteParentStatus,
) []gwpkg.Listener

func GetValidHostnames

func GetValidHostnames(listenerHostname *gwv1beta1.Hostname, routeHostnames []gwv1beta1.Hostname) []string

func GetValidListenersFromGateway

func GetValidListenersFromGateway(gw *gwv1beta1.Gateway) []gwpkg.Listener

func GroupPointer

func GroupPointer(group string) *gwv1beta1.Group

func HostnameMatchesWildcardHostname

func HostnameMatchesWildcardHostname(hostname, wildcardHostname string) bool

func IsAcceptedGateway

func IsAcceptedGateway(gateway *gwv1beta1.Gateway) bool

func IsAcceptedGatewayClass

func IsAcceptedGatewayClass(gatewayClass *gwv1beta1.GatewayClass) bool

func IsActiveGateway

func IsActiveGateway(gateway *gwv1beta1.Gateway) bool

func IsActiveGatewayClass

func IsActiveGatewayClass(gatewayClass *gwv1beta1.GatewayClass) bool

func IsEffectiveGatewayClass

func IsEffectiveGatewayClass(gatewayClass *gwv1beta1.GatewayClass) bool

func IsListenerAccepted

func IsListenerAccepted(listenerStatus gwv1beta1.ListenerStatus) bool

func IsListenerProgrammed

func IsListenerProgrammed(listenerStatus gwv1beta1.ListenerStatus) bool

func IsRefToGateway

func IsRefToGateway(parentRef gwv1beta1.ParentReference, gateway client.ObjectKey) bool

func ObjectKey

func ObjectKey(obj client.Object) client.ObjectKey

Types

This section is empty.

Jump to

Keyboard shortcuts

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