query

package
v1.17.0-beta27 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 11 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 {
	// Gets the RouteOption attached to the provided HTTPRoute.
	// If multiple RouteOptions are attached to the route, it returns the earliest created resource.
	// Note that currently, only RouteOptions in the same namespace as the HTTPRoute can be attached.
	//
	// When the given route is a delegatee/child route in a delegation tree, the RouteOption of its ancestors
	// are recursively merged in priority order along the given delegation chain, along with any RouteOption
	// that may be attached to the route itself. The creation timestamp is only considered if multiple RouteOptions
	// attach to the same route for a route in the delegation chain, in which case the earliest created resource is
	// picked for the merging process.
	GetRouteOptionForRoute(ctx context.Context, route types.NamespacedName, delegationChain *list.Element) (*solokubev1.RouteOption, 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