Documentation ¶
Overview ¶
Package types contains types used by the gateway controller
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OneTermSelector ¶ added in v1.4.0
OneTermSelector is a selector that matches fields that have a specific index name
Types ¶
type Controller ¶ added in v1.4.0
type Controller interface { cache.ResourceEventHandler // Runnable runs the backend broadcast listener manager.Runnable // LeaderElectionRunnable knows if a Runnable needs to be run in the leader election mode. manager.LeaderElectionRunnable }
Controller is the interface for the functionality provided by the resources part of the gateway.networking.k8s.io API group
type CrossNamespaceFrom ¶ added in v1.3.0
CrossNamespaceFrom is the type used to represent the from part of a cross-namespace reference
type CrossNamespaceTo ¶ added in v1.3.0
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" )