Documentation ¶
Index ¶
Constants ¶
View Source
const (
RouteOptionTargetField = "routeOption.targetRef"
)
Variables ¶
This section is empty.
Functions ¶
func IterateIndices ¶
Types ¶
type RouteOptionQueries ¶
type RouteOptionQueries interface { // GetRouteOptionForRouteRule returns the RouteOption attached to the given route and rule. // // It performs a merge of the ExtensionRef filter attachment and targetRef based attachment // while giving priority to the ExtensionRef filter attachment. // A lower priority RouteOption may augment the top-level fields in a higher priority RouteOption, // but can never override them. // // When multiple RouteOptions are attached to the route via targetRef, only the earliest created // resource is considered for the merge. // // It returns the merged RouteOption, a list of sources corresponding to the merge, and an error if one occurs. GetRouteOptionForRouteRule( ctx context.Context, route types.NamespacedName, rule *gwv1.HTTPRouteRule, gwQueries gwquery.GatewayQueries, ) (*solokubev1.RouteOption, []*gloov1.SourceMetadata_SourceRef, error) }
func NewQuery ¶
func NewQuery(c client.Client) RouteOptionQueries
Click to show internal directories.
Click to hide internal directories.