Documentation ¶
Index ¶
- func CheckAgainstCrossNamespaceBackendReferences(input Input) (bool, error)
- func CheckBackendIsExistingService(input Input) (bool, error)
- func CheckBackendIsService(input Input) (bool, error)
- func CheckGatewayAllowedForNamespace(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)
- func CheckGatewayMatchingHostnames(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)
- func CheckGatewayMatchingPorts(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)
- func CheckGatewayMatchingSection(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)
- func CheckGatewayRouteKindAllowed(input Input, parentRef gatewayv1beta1.ParentReference) (bool, error)
- type CheckGatewayFunc
- type CheckRuleFunc
- type GenericRule
- type HTTPRouteInput
- func (h *HTTPRouteInput) GetClient() client.Client
- func (h *HTTPRouteInput) GetContext() context.Context
- func (h *HTTPRouteInput) GetGVK() schema.GroupVersionKind
- func (h *HTTPRouteInput) GetGateway(parent gatewayv1beta1.ParentReference) (*gatewayv1beta1.Gateway, error)
- func (h *HTTPRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
- func (h *HTTPRouteInput) GetHostnames() []gatewayv1beta1.Hostname
- func (h *HTTPRouteInput) GetNamespace() string
- func (h *HTTPRouteInput) GetRules() []GenericRule
- func (h *HTTPRouteInput) Log() *logrus.Entry
- func (h *HTTPRouteInput) SetAllParentCondition(condition metav1.Condition)
- func (h *HTTPRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)
- type HTTPRouteRule
- type Input
- type TLSRouteInput
- func (t *TLSRouteInput) GetClient() client.Client
- func (t *TLSRouteInput) GetContext() context.Context
- func (t *TLSRouteInput) GetGVK() schema.GroupVersionKind
- func (t *TLSRouteInput) GetGateway(parent gatewayv1beta1.ParentReference) (*gatewayv1beta1.Gateway, error)
- func (t *TLSRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
- func (t *TLSRouteInput) GetHostnames() []gatewayv1beta1.Hostname
- func (t *TLSRouteInput) GetNamespace() string
- func (t *TLSRouteInput) GetRules() []GenericRule
- func (t *TLSRouteInput) Log() *logrus.Entry
- func (t *TLSRouteInput) SetAllParentCondition(condition metav1.Condition)
- func (t *TLSRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)
- type TLSRouteRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBackendIsService ¶
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 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 (h *HTTPRouteInput) GetGVK() schema.GroupVersionKind
func (*HTTPRouteInput) GetGateway ¶
func (h *HTTPRouteInput) GetGateway(parent gatewayv1beta1.ParentReference) (*gatewayv1beta1.Gateway, error)
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 (t *TLSRouteInput) GetGVK() schema.GroupVersionKind
func (*TLSRouteInput) GetGateway ¶
func (t *TLSRouteInput) GetGateway(parent gatewayv1beta1.ParentReference) (*gatewayv1beta1.Gateway, error)
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
Click to show internal directories.
Click to hide internal directories.