query

package
v1.17.0-beta29 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RouteOptionTargetField = "routeOption.targetRef"
)

Variables

This section is empty.

Functions

func IterateIndices

func IterateIndices(f func(client.Object, string, client.IndexerFunc) error) error

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

Jump to

Keyboard shortcuts

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