Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LongestHost ¶
LongestHost returns the most specific host. The length is: 1. the length of the hostnames. 2. the first alphabetical order.
For example, "hello-example.default.svc.cluster.local" will be returned from the following hosts in KIngress.
- hosts:
- hello.default
- hello.default.svc
- hello.default.svc.cluster.local
func MakeHTTPRoute ¶
func MakeHTTPRoute( ctx context.Context, ing *netv1alpha1.Ingress, rule *netv1alpha1.IngressRule, ) (*gatewayv1alpa2.HTTPRoute, error)
MakeHTTPRoute creates HTTPRoute to set up routing rules.
Types ¶
type HTTPHeaderList ¶ added in v0.30.0
type HTTPHeaderList []gatewayv1alpa2.HTTPHeader
func (HTTPHeaderList) Len ¶ added in v0.30.0
func (h HTTPHeaderList) Len() int
func (HTTPHeaderList) Less ¶ added in v0.30.0
func (h HTTPHeaderList) Less(i, j int) bool
func (HTTPHeaderList) Swap ¶ added in v0.30.0
func (h HTTPHeaderList) Swap(i, j int)
type HTTPHeaderMatchList ¶ added in v0.30.0
type HTTPHeaderMatchList []gatewayv1alpa2.HTTPHeaderMatch
func (HTTPHeaderMatchList) Len ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Len() int
func (HTTPHeaderMatchList) Less ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Less(i, j int) bool
func (HTTPHeaderMatchList) Swap ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.