refs

package
v1.6.1-0...-f207c0f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetControlPlaneRefByParentRef

func GetControlPlaneRefByParentRef(ctx context.Context, cl client.Client, route *gwtypes.HTTPRoute, pRef gwtypes.ParentReference) (*commonv1alpha1.ControlPlaneRef, error)

GetControlPlaneRefByParentRef retrieves the control plane reference for a given parent reference.

func GetGatewaysByHTTPRoute

func GetGatewaysByHTTPRoute(ctx context.Context, cl client.Client, r gwtypes.HTTPRoute) []gwtypes.Gateway

GetGatewaysByHTTPRoute returns Gateways referenced by the given HTTPRoute.

func GetListenersByParentRef

func GetListenersByParentRef(ctx context.Context, cl client.Client, route *gwtypes.HTTPRoute, pRef gwtypes.ParentReference) ([]gwtypes.Listener, error)

GetListenersByParentRef retrieves the listeners for a given parent reference.

func GetNamespacedRefs

func GetNamespacedRefs(ctx context.Context, cl client.Client, obj runtime.Object) (map[string]GatewaysByNamespacedRef, error)

GetNamespacedRefs returns a slice of KonnectNamespacedRef for the given runtime.Object, based on its type.

Types

type GatewaysByNamespacedRef

type GatewaysByNamespacedRef struct {
	Ref      commonv1alpha1.KonnectNamespacedRef
	Gateways []gwtypes.Gateway
}

GatewaysByNamespacedRef associates a KonnectNamespacedRef with a list of Gateways.

Jump to

Keyboard shortcuts

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