# Functions

ValidateGateway validates gw according to the Gateway API specification.
ValidateGatewayClassUpdate validates an update to oldClass according to the Gateway API specification.
ValidateGatewaySpec validates whether required fields of spec are set according to the Gateway API specification.
ValidateHTTPRoute validates HTTPRoute according to the Gateway API specification.
ValidateHTTPRouteSpec validates that required fields of spec are set according to the HTTPRoute specification.
ValidateListenerNames validates the names of the listeners must be unique within the Gateway.
ValidateListenerTLSConfig validates TLS config must be set when protocol is HTTPS or TLS, and TLS config shall not be present when protocol is HTTP, TCP or UDP.
ValidateParentRefs validates ParentRefs SectionName must be set and unique when ParentRefs includes 2 or more references to the same parent.
ValidateTLSCertificateRefs validates the certificateRefs must be set and not empty when tls config is set and TLSModeType is terminate.