# Functions
BackendRefToServicePortName converts a BackendRef to a ServicePortName for a given Route if the referent is a Kubernetes Service and the port is valid.
DeepCopy copy all fields from source to destination.
ExtensionRefToFilter converts a LocalObjectReference to a Filter.
FilterEndpointSliceList filters the given EndpointSliceList to only include EndpointSlices that have a matching port.
FindBackendLBPolicy finds the BackendTLSPolicy for the given LocalPolicyTargetReference.
FindBackendTLSPolicy finds the BackendTLSPolicy for the given LocalPolicyTargetReferenceWithSectionName.
FindEndpointPort finds the port in the EndpointPort slice that matches the ServicePort.
FindEndpointSlicePort finds the port in the EndpointSlice that matches the ServicePort.
FindGatewayClassByName returns the GatewayClass with the given name.
No description provided by the author
FindMatchedReferenceGrant returns if the reference is valid across namespaces based on the reference grants.
No description provided by the author
GetActiveGateways returns the active gateways.
GetActiveGatewaysInNamespace returns the active gateways in the namespace.
GetAllowedListeners returns the allowed listeners.
GetCARefGrants returns all ReferenceGrants in the cache that target a Kubernetes Secret or ConfigMap.
GetDefaultPort returns the default port for the given ServicePort.
GetSecretRefGrants returns all ReferenceGrants in the cache that target a Kubernetes Secret.
GetServicePort returns the ServicePort for the given port.
GetServiceRefGrants returns all ReferenceGrants in the cache that target a Kubernetes Service.
GetValidHostnames returns the valid hostnames.
GetValidListenersForGateway returns the valid listeners from the gateway.
GroupPointer returns a pointer to the given group.
HasAccessToBackendTargetRef checks if the policy has access to the target reference which is a backend service.
HasAccessToTargetRef returns true if the policy has access to the target reference.
HostnameMatchesWildcardHostname returns true if the hostname matches the wildcard hostname.
IsAcceptedGateway returns true if the gateway is accepted.
IsAcceptedGatewayClass returns true if the gateway class is accepted.
IsAcceptedPolicyAttachment returns true if the policy attachment is accepted.
IsActiveGateway returns true if the gateway is active, it stands for the gateway is accepted, programmed and has a valid listener.
No description provided by the author
IsEffectiveRouteForParent returns true if the route is accepted and all references are resolved.
IsEndpointReady returns true if the given Endpoint is ready.
IsListenerAccepted returns true if the listener is accepted.
IsListenerConflicted returns true if the listener is conflicted.
IsListenerProgrammed returns true if the listener is programmed.
IsListenerResolvedRefs returns true if the listener is resolved refs.
IsListenerValid returns true if the listener is valid.
No description provided by the author
No description provided by the author
IsProgrammedGateway returns true if the gateway is programmed.
IsRefToGateway returns true if the parent reference is to the gateway.
IsTargetRefToGVK returns true if the target reference is to the given group version kind.
IsTargetRefToTarget returns true if the target reference is to the target resource.
IsValidBackendRefToGroupKindOfService returns true if the reference is to a Service in the core group.
IsValidRefToGroupKindOfCA returns true if the reference is to a ConfigMap or Secret in the core group.
IsValidRefToGroupKindOfSecret returns true if the reference is to a Secret in the core group.
IsValidTargetRefToGroupKindOfService checks if the target reference is valid to the group kind of service.
NamespaceDerefOr returns the namespace if it is not nil, otherwise returns the default namespace.
NamespaceMatches returns true if the namespace matches.
ObjectRefToCACertificate converts an ObjectReference to a CA Certificate.
SortResources sorts the resources by creation timestamp and name.
No description provided by the author
ValidCrossNamespaceRef returns if the reference is valid across namespaces based on the reference grants.
# Variables
No description provided by the author