routeutils

package
v1.17.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendSourceToRoute

func AppendSourceToRoute(route *v1.Route, newSources []*gloov1.SourceMetadata_SourceRef, preserveExisting bool)

Types

type SortableRoute

type SortableRoute struct {
	Route     *v1.Route
	HttpRoute *gwv1.HTTPRoute
	Idx       int
}

type SortableRoutes

type SortableRoutes []*SortableRoute

func ToSortable

func ToSortable(route *gwv1.HTTPRoute, routes []*v1.Route) SortableRoutes

func (SortableRoutes) Len

func (a SortableRoutes) Len() int

func (SortableRoutes) Less

func (a SortableRoutes) Less(i, j int) bool

func (SortableRoutes) Swap

func (a SortableRoutes) Swap(i, j int)

func (SortableRoutes) ToRoutes

func (a SortableRoutes) ToRoutes() []*v1.Route

Jump to

Keyboard shortcuts

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