Documentation
¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( KindTCPRoute gatewayv1beta1.Kind = "TCPRoute" KindTLSRoute gatewayv1beta1.Kind = "TLSRoute" KindHTTPRoute gatewayv1beta1.Kind = "HTTPRoute" KindUDPRoute gatewayv1beta1.Kind = "UDPRoute" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListenerConf ¶
type ListenerConf struct {
// Gateway namespace
Namespace string
// Gateway name
Name string
SectionName string
Protocol gatewayv1beta1.ProtocolType
Port gatewayv1beta1.PortNumber
Hostname *gatewayv1beta1.Hostname
// namespace selector of AllowedRoutes
RouteNamespace *gatewayv1beta1.RouteNamespaces
AllowedKinds []gatewayv1beta1.RouteGroupKind
}
func (*ListenerConf) HasHostname ¶
func (c *ListenerConf) HasHostname() bool
func (*ListenerConf) IsAllowedKind ¶
func (c *ListenerConf) IsAllowedKind(r gatewayv1beta1.RouteGroupKind) bool
func (*ListenerConf) IsHostnameMatch ¶
func (c *ListenerConf) IsHostnameMatch(hostnames []gatewayv1beta1.Hostname) bool