gatewayapi

package
v1.0.0-rc10 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouteAcceptedParentRefs

func GetRouteAcceptedParentRefs(route *gatewayapiv1.HTTPRoute) []gatewayapiv1.ParentReference

GetRouteAcceptedParentRefs returns the list of parentRefs for which a given route has the Accepted status condition

func HostnamesFromListenerAndHTTPRoute

func HostnamesFromListenerAndHTTPRoute(listener *gatewayapiv1.Listener, httpRoute *gatewayapiv1.HTTPRoute) []gatewayapiv1.Hostname

func IsCertManagerInstalled

func IsCertManagerInstalled(restMapper meta.RESTMapper, logger logr.Logger) (bool, error)

func IsGatewayAPIInstalled

func IsGatewayAPIInstalled(restMapper meta.RESTMapper) (bool, error)

func IsHTTPRouteAccepted

func IsHTTPRouteAccepted(httpRoute *gatewayapiv1.HTTPRoute) bool

IsHTTPRouteAccepted returns true if a given HTTPRoute has the Accepted status condition added by any of its parentRefs; otherwise, it returns false

func IsHTTPRouteReady

func IsHTTPRouteReady(httpRoute *gatewayapiv1.HTTPRoute, gateway *gatewayapiv1.Gateway, controllerName gatewayapiv1.GatewayController) bool

func IsListenerReady

func IsListenerReady(listener *gatewayapiv1.Listener, gateway *gatewayapiv1.Gateway) bool

func IsPolicyAccepted

func IsPolicyAccepted(policy Policy) bool

func PolicyStatusConditionsFromAncestor

func PolicyStatusConditionsFromAncestor(policyStatus gatewayapiv1alpha2.PolicyStatus, controllerName gatewayapiv1.GatewayController, ancestor gatewayapiv1.ParentReference, defaultNamespace gatewayapiv1.Namespace) []metav1.Condition

PolicyStatusConditionsFromAncestor returns the conditions from a policy status for a given ancestor

Types

type GrouppedHTTPRouteMatchConfigs

type GrouppedHTTPRouteMatchConfigs map[string]SortableHTTPRouteMatchConfigs

func (*GrouppedHTTPRouteMatchConfigs) Add

func (*GrouppedHTTPRouteMatchConfigs) Sorted

type HTTPRouteMatchConfig

type HTTPRouteMatchConfig struct {
	Hostname          string
	HTTPRouteMatch    gatewayapiv1.HTTPRouteMatch
	CreationTimestamp metav1.Time
	Namespace         string
	Name              string
	Config            any
}

HTTPRouteMatchConfig stores any config associated to an HTTPRouteRule

type Policy

type Policy interface {
	client.Object
	GetTargetRef() gatewayapiv1alpha2.LocalPolicyTargetReference
	GetStatus() PolicyStatus
}

type PolicyStatus

type PolicyStatus interface {
	GetConditions() []metav1.Condition
}

type SortableHTTPRouteMatchConfigs

type SortableHTTPRouteMatchConfigs []HTTPRouteMatchConfig

SortableHTTPRouteMatchConfigs is a slice of HTTPRouteMatch that implements sort.Interface

func (SortableHTTPRouteMatchConfigs) Len

func (SortableHTTPRouteMatchConfigs) Less

func (c SortableHTTPRouteMatchConfigs) Less(i, j int) bool

func (SortableHTTPRouteMatchConfigs) Swap

func (c SortableHTTPRouteMatchConfigs) Swap(i, j int)

Jump to

Keyboard shortcuts

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