routechecks

package
v1.15.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAgainstCrossNamespaceBackendReferences

func CheckAgainstCrossNamespaceBackendReferences(input Input) (bool, error)

func CheckBackendIsExistingService

func CheckBackendIsExistingService(input Input) (bool, error)

func CheckBackendIsService

func CheckBackendIsService(input Input) (bool, error)

func CheckGatewayAllowedForNamespace

func CheckGatewayAllowedForNamespace(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)

func CheckGatewayMatchingHostnames

func CheckGatewayMatchingHostnames(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)

func CheckGatewayMatchingPorts

func CheckGatewayMatchingPorts(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)

func CheckGatewayMatchingSection

func CheckGatewayMatchingSection(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)

func CheckGatewayRouteKindAllowed

func CheckGatewayRouteKindAllowed(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)

Types

type CheckGatewayFunc

type CheckGatewayFunc func(input Input, ref gatewayv1beta1.ParentReference) (bool, error)

type CheckRuleFunc

type CheckRuleFunc func(input Input) (bool, error)

type GenericRule

type GenericRule interface {
	GetBackendRefs() []gatewayv1beta1.BackendRef
}

type HTTPRouteInput

type HTTPRouteInput struct {
	Ctx       context.Context
	Logger    *logrus.Entry
	Client    client.Client
	Grants    *gatewayv1beta1.ReferenceGrantList
	HTTPRoute *gatewayv1beta1.HTTPRoute
	// contains filtered or unexported fields
}

HTTPRouteInput is used to implement the Input interface for HTTPRoute

func (*HTTPRouteInput) GetClient

func (h *HTTPRouteInput) GetClient() client.Client

func (*HTTPRouteInput) GetContext

func (h *HTTPRouteInput) GetContext() context.Context

func (*HTTPRouteInput) GetGVK

func (*HTTPRouteInput) GetGateway

func (*HTTPRouteInput) GetGrants

func (h *HTTPRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant

func (*HTTPRouteInput) GetHostnames

func (h *HTTPRouteInput) GetHostnames() []gatewayv1beta1.Hostname

func (*HTTPRouteInput) GetNamespace

func (h *HTTPRouteInput) GetNamespace() string

func (*HTTPRouteInput) GetRules

func (h *HTTPRouteInput) GetRules() []GenericRule

func (*HTTPRouteInput) Log

func (h *HTTPRouteInput) Log() *logrus.Entry

func (*HTTPRouteInput) SetAllParentCondition

func (h *HTTPRouteInput) SetAllParentCondition(condition metav1.Condition)

func (*HTTPRouteInput) SetParentCondition

func (h *HTTPRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)

type HTTPRouteRule

type HTTPRouteRule struct {
	Rule gatewayv1beta1.HTTPRouteRule
}

HTTPRouteRule is used to implement the GenericRule interface for TLSRoute

func (*HTTPRouteRule) GetBackendRefs

func (t *HTTPRouteRule) GetBackendRefs() []gatewayv1beta1.BackendRef

type Input

type Input interface {
	GetRules() []GenericRule
	GetNamespace() string
	GetClient() client.Client
	GetContext() context.Context
	GetGVK() schema.GroupVersionKind
	GetGrants() []gatewayv1beta1.ReferenceGrant
	GetGateway(parent gatewayv1beta1.ParentReference) (*gatewayv1beta1.Gateway, error)
	GetHostnames() []gatewayv1beta1.Hostname

	SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)
	SetAllParentCondition(condition metav1.Condition)
	Log() *logrus.Entry
}

type TLSRouteInput

type TLSRouteInput struct {
	Ctx      context.Context
	Logger   *logrus.Entry
	Client   client.Client
	Grants   *gatewayv1beta1.ReferenceGrantList
	TLSRoute *gatewayv1alpha2.TLSRoute
	// contains filtered or unexported fields
}

TLSRouteInput is used to implement the Input interface for TLSRoute

func (*TLSRouteInput) GetClient

func (t *TLSRouteInput) GetClient() client.Client

func (*TLSRouteInput) GetContext

func (t *TLSRouteInput) GetContext() context.Context

func (*TLSRouteInput) GetGVK

func (*TLSRouteInput) GetGateway

func (*TLSRouteInput) GetGrants

func (t *TLSRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant

func (*TLSRouteInput) GetHostnames

func (t *TLSRouteInput) GetHostnames() []gatewayv1beta1.Hostname

func (*TLSRouteInput) GetNamespace

func (t *TLSRouteInput) GetNamespace() string

func (*TLSRouteInput) GetRules

func (t *TLSRouteInput) GetRules() []GenericRule

func (*TLSRouteInput) Log

func (t *TLSRouteInput) Log() *logrus.Entry

func (*TLSRouteInput) SetAllParentCondition

func (t *TLSRouteInput) SetAllParentCondition(condition metav1.Condition)

func (*TLSRouteInput) SetParentCondition

func (t *TLSRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)

type TLSRouteRule

type TLSRouteRule struct {
	Rule gatewayv1alpha2.TLSRouteRule
}

TLSRouteRule is used to implement the GenericRule interface for TLSRoute

func (*TLSRouteRule) GetBackendRefs

func (t *TLSRouteRule) GetBackendRefs() []gatewayv1beta1.BackendRef

Jump to

Keyboard shortcuts

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