Documentation ¶
Index ¶
- func EqualLocalPolicyTargetReferencesWithSectionName(a, b []gatewayapiv1alpha2.LocalPolicyTargetReferenceWithSectionName) bool
- func GetRouteAcceptedParentRefs(route *gatewayapiv1.HTTPRoute) []gatewayapiv1.ParentReference
- func HostnamesFromListenerAndHTTPRoute(listener *gatewayapiv1.Listener, httpRoute *gatewayapiv1.HTTPRoute) []gatewayapiv1.Hostname
- func IsCertManagerInstalled(restMapper meta.RESTMapper, logger logr.Logger) (bool, error)
- func IsGatewayAPIInstalled(restMapper meta.RESTMapper) (bool, error)
- func IsHTTPRouteAccepted(httpRoute *gatewayapiv1.HTTPRoute) bool
- func IsHTTPRouteReady(httpRoute *gatewayapiv1.HTTPRoute, gateway *gatewayapiv1.Gateway, ...) bool
- func IsListenerReady(listener *gatewayapiv1.Listener, gateway *gatewayapiv1.Gateway) bool
- func IsPolicyAccepted(policy Policy) bool
- func PolicyStatusConditionsFromAncestor(policyStatus gatewayapiv1alpha2.PolicyStatus, ...) []metav1.Condition
- type GrouppedHTTPRouteMatchConfigs
- type HTTPRouteMatchConfig
- type Policy
- type PolicyStatus
- type SortableHTTPRouteMatchConfigs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualLocalPolicyTargetReferencesWithSectionName ¶
func EqualLocalPolicyTargetReferencesWithSectionName(a, b []gatewayapiv1alpha2.LocalPolicyTargetReferenceWithSectionName) bool
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 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 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 (g *GrouppedHTTPRouteMatchConfigs) Add(key string, configs ...HTTPRouteMatchConfig)
func (*GrouppedHTTPRouteMatchConfigs) Sorted ¶
func (g *GrouppedHTTPRouteMatchConfigs) Sorted() GrouppedHTTPRouteMatchConfigs
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 SortableHTTPRouteMatchConfigs ¶
type SortableHTTPRouteMatchConfigs []HTTPRouteMatchConfig
SortableHTTPRouteMatchConfigs is a slice of HTTPRouteMatch that implements sort.Interface
func (SortableHTTPRouteMatchConfigs) Len ¶
func (c SortableHTTPRouteMatchConfigs) Len() int
func (SortableHTTPRouteMatchConfigs) Less ¶
func (c SortableHTTPRouteMatchConfigs) Less(i, j int) bool
func (SortableHTTPRouteMatchConfigs) Swap ¶
func (c SortableHTTPRouteMatchConfigs) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.