types

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package types contains types used by the gateway controller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossNamespaceFrom added in v1.3.0

type CrossNamespaceFrom struct {
	Group     string
	Kind      string
	Namespace string
}

CrossNamespaceFrom is the type used to represent the from part of a cross-namespace reference

type CrossNamespaceTo added in v1.3.0

type CrossNamespaceTo struct {
	Group     string
	Kind      string
	Namespace string
	Name      string
}

CrossNamespaceTo is the type used to represent the to part of a cross-namespace reference

type Listener

type Listener struct {
	gwv1.Listener
	SupportedKinds []gwv1.RouteGroupKind
}

Listener is a wrapper around the Gateway API Listener object

func (*Listener) AllowsKind

func (l *Listener) AllowsKind(gvk schema.GroupVersionKind) bool

AllowsKind returns true if the listener allows the given kind

type PolicyMatchType added in v1.2.0

type PolicyMatchType string

PolicyMatchType is the type used to represent the rate limit policy match type

const (
	// PolicyMatchTypePort is the type used to represent the rate limit policy match type port
	PolicyMatchTypePort PolicyMatchType = "port"

	// PolicyMatchTypeHostnames is the type used to represent the rate limit policy match type hostnames
	PolicyMatchTypeHostnames PolicyMatchType = "hostnames"

	// PolicyMatchTypeHTTPRoute is the type used to represent the rate limit policy match type httproute
	PolicyMatchTypeHTTPRoute PolicyMatchType = "httproute"

	// PolicyMatchTypeGRPCRoute is the type used to represent the rate limit policy match type grpcroute
	PolicyMatchTypeGRPCRoute PolicyMatchType = "grpcroute"
)

type RouteContext added in v1.3.0

type RouteContext struct {
	Meta         metav1.Object
	ParentRefs   []gwv1.ParentReference
	GVK          schema.GroupVersionKind
	Generation   int64
	Hostnames    []gwv1.Hostname
	Namespace    string
	ParentStatus []gwv1.RouteParentStatus
}

RouteContext is a wrapper around the Gateway API Route object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL