Documentation ¶
Index ¶
- func AddressTypePtr(addressType gatewayapi_v1alpha2.AddressType) *gatewayapi_v1alpha2.AddressType
- func CertificateRef(name, namespace string) *gatewayapi_v1alpha2.SecretObjectReference
- func FromNamespacesPtr(val gatewayapi_v1alpha2.FromNamespaces) *gatewayapi_v1alpha2.FromNamespaces
- func GatewayAddressTypePtr(addr gatewayapi_v1alpha2.AddressType) *gatewayapi_v1alpha2.AddressType
- func GatewayListenerParentRef(namespace, name, listener string) gatewayapi_v1alpha2.ParentRef
- func GatewayParentRef(namespace, name string) gatewayapi_v1alpha2.ParentRef
- func GroupPtr(group string) *gatewayapi_v1alpha2.Group
- func HTTPBackendRef(serviceName string, port int, weight int32) []gatewayapi_v1alpha2.HTTPBackendRef
- func HTTPBackendRefs(backendRefs ...[]gatewayapi_v1alpha2.HTTPBackendRef) []gatewayapi_v1alpha2.HTTPBackendRef
- func HTTPHeaderMatch(matchType gatewayapi_v1alpha2.HeaderMatchType, name, value string) []gatewayapi_v1alpha2.HTTPHeaderMatch
- func HTTPMethodPtr(method gatewayapi_v1alpha2.HTTPMethod) *gatewayapi_v1alpha2.HTTPMethod
- func HTTPRouteMatch(pathType gatewayapi_v1alpha2.PathMatchType, value string) []gatewayapi_v1alpha2.HTTPRouteMatch
- func HeaderMatchTypePtr(val gatewayapi_v1alpha2.HeaderMatchType) *gatewayapi_v1alpha2.HeaderMatchType
- func HostnameDeref(hostname *gatewayapi_v1alpha2.Hostname) string
- func IsValidHostname(hostname string) error
- func KindPtr(kind string) *gatewayapi_v1alpha2.Kind
- func ListenerHostname(host string) *gatewayapi_v1alpha2.Hostname
- func NamespacePtr(namespace string) *gatewayapi_v1alpha2.Namespace
- func ObjectNamePtr(name string) *gatewayapi_v1alpha2.ObjectName
- func PathMatchTypePtr(val gatewayapi_v1alpha2.PathMatchType) *gatewayapi_v1alpha2.PathMatchType
- func PortNumPtr(port int) *gatewayapi_v1alpha2.PortNumber
- func PreciseHostname(host string) *gatewayapi_v1alpha2.PreciseHostname
- func SectionNamePtr(sectionName string) *gatewayapi_v1alpha2.SectionName
- func ServiceBackendObjectRef(name string, port int) gatewayapi_v1alpha2.BackendObjectReference
- func TLSModeTypePtr(mode gatewayapi_v1alpha2.TLSModeType) *gatewayapi_v1alpha2.TLSModeType
- func TLSRouteBackendRef(serviceName string, port int, weight *int32) []gatewayapi_v1alpha2.BackendRef
- func TLSRouteBackendRefs(backendRefs ...[]gatewayapi_v1alpha2.BackendRef) []gatewayapi_v1alpha2.BackendRef
- type ValidateListenersResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressTypePtr ¶
func AddressTypePtr(addressType gatewayapi_v1alpha2.AddressType) *gatewayapi_v1alpha2.AddressType
func CertificateRef ¶
func CertificateRef(name, namespace string) *gatewayapi_v1alpha2.SecretObjectReference
func FromNamespacesPtr ¶
func FromNamespacesPtr(val gatewayapi_v1alpha2.FromNamespaces) *gatewayapi_v1alpha2.FromNamespaces
func GatewayAddressTypePtr ¶
func GatewayAddressTypePtr(addr gatewayapi_v1alpha2.AddressType) *gatewayapi_v1alpha2.AddressType
func GatewayListenerParentRef ¶
func GatewayListenerParentRef(namespace, name, listener string) gatewayapi_v1alpha2.ParentRef
func GatewayParentRef ¶
func GatewayParentRef(namespace, name string) gatewayapi_v1alpha2.ParentRef
func GroupPtr ¶
func GroupPtr(group string) *gatewayapi_v1alpha2.Group
func HTTPBackendRef ¶
func HTTPBackendRef(serviceName string, port int, weight int32) []gatewayapi_v1alpha2.HTTPBackendRef
func HTTPBackendRefs ¶
func HTTPBackendRefs(backendRefs ...[]gatewayapi_v1alpha2.HTTPBackendRef) []gatewayapi_v1alpha2.HTTPBackendRef
func HTTPHeaderMatch ¶
func HTTPHeaderMatch(matchType gatewayapi_v1alpha2.HeaderMatchType, name, value string) []gatewayapi_v1alpha2.HTTPHeaderMatch
func HTTPMethodPtr ¶
func HTTPMethodPtr(method gatewayapi_v1alpha2.HTTPMethod) *gatewayapi_v1alpha2.HTTPMethod
func HTTPRouteMatch ¶
func HTTPRouteMatch(pathType gatewayapi_v1alpha2.PathMatchType, value string) []gatewayapi_v1alpha2.HTTPRouteMatch
func HeaderMatchTypePtr ¶
func HeaderMatchTypePtr(val gatewayapi_v1alpha2.HeaderMatchType) *gatewayapi_v1alpha2.HeaderMatchType
func HostnameDeref ¶ added in v1.21.0
func HostnameDeref(hostname *gatewayapi_v1alpha2.Hostname) string
HostnameDeref returns the hostname as a string if it's not nil, or an empty string otherwise.
func IsValidHostname ¶ added in v1.21.0
IsValidHostname validates that a given hostname is syntactically valid. It returns nil if valid and an error if not valid.
func KindPtr ¶
func KindPtr(kind string) *gatewayapi_v1alpha2.Kind
func ListenerHostname ¶
func ListenerHostname(host string) *gatewayapi_v1alpha2.Hostname
func NamespacePtr ¶
func NamespacePtr(namespace string) *gatewayapi_v1alpha2.Namespace
func ObjectNamePtr ¶
func ObjectNamePtr(name string) *gatewayapi_v1alpha2.ObjectName
func PathMatchTypePtr ¶
func PathMatchTypePtr(val gatewayapi_v1alpha2.PathMatchType) *gatewayapi_v1alpha2.PathMatchType
func PortNumPtr ¶
func PortNumPtr(port int) *gatewayapi_v1alpha2.PortNumber
func PreciseHostname ¶
func PreciseHostname(host string) *gatewayapi_v1alpha2.PreciseHostname
func SectionNamePtr ¶
func SectionNamePtr(sectionName string) *gatewayapi_v1alpha2.SectionName
func ServiceBackendObjectRef ¶
func ServiceBackendObjectRef(name string, port int) gatewayapi_v1alpha2.BackendObjectReference
func TLSModeTypePtr ¶
func TLSModeTypePtr(mode gatewayapi_v1alpha2.TLSModeType) *gatewayapi_v1alpha2.TLSModeType
func TLSRouteBackendRef ¶
func TLSRouteBackendRef(serviceName string, port int, weight *int32) []gatewayapi_v1alpha2.BackendRef
func TLSRouteBackendRefs ¶
func TLSRouteBackendRefs(backendRefs ...[]gatewayapi_v1alpha2.BackendRef) []gatewayapi_v1alpha2.BackendRef
Types ¶
type ValidateListenersResult ¶ added in v1.21.0
type ValidateListenersResult struct { InsecurePort int SecurePort int InvalidListenerConditions map[gatewayapi_v1alpha2.SectionName]metav1.Condition }
func ValidateListeners ¶ added in v1.21.0
func ValidateListeners(listeners []gatewayapi_v1alpha2.Listener) ValidateListenersResult
ValidateListeners validates protocols, ports and hostnames on a set of listeners. It ensures that:
- all protocols are supported
- each listener group (grouped by protocol, with HTTPS & TLS going together) uses a single port
- listener hostnames are syntactically valid
- hostnames within each listener group are unique
It returns the insecure & secure ports to use, as well as conditions for all invalid listeners. If a listener is not in the "InvalidListenerConditions" map, it is assumed to be valid according to the above rules.
Click to show internal directories.
Click to hide internal directories.