routeutils

package
v1.18.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 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 {
	GlooRoute   *v1.Route
	RouteObject client.Object
	Idx         int
}

type SortableRoutes

type SortableRoutes []*SortableRoute

func ToSortable

func ToSortable(obj client.Object, 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