Documentation ¶
Index ¶
- func CheckAgainstCrossNamespaceBackendReferences(input Input) (bool, error)
- func CheckBackend(input Input) (bool, error)
- func CheckBackendIsExistingService(input Input) (bool, error)
- func CheckGammaServiceAllowedForNamespace(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckGatewayAllowedForNamespace(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckGatewayMatchingHostnames(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckGatewayMatchingPorts(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckGatewayMatchingSection(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckGatewayRouteKindAllowed(input Input, parentRef gatewayv1.ParentReference) (bool, error)
- func CheckHasServiceImportSupport(input Input) (bool, error)
- func GetAllListenerHostNames(listeners []gatewayv1.Listener) []gatewayv1.Hostname
- type CheckParentFunc
- type CheckRuleFunc
- type GRPCRouteInput
- func (g *GRPCRouteInput) GetClient() client.Client
- func (g *GRPCRouteInput) GetContext() context.Context
- func (g *GRPCRouteInput) GetGVK() schema.GroupVersionKind
- func (g *GRPCRouteInput) GetGateway(parent gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
- func (g *GRPCRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
- func (g *GRPCRouteInput) GetHostnames() []gatewayv1beta1.Hostname
- func (g *GRPCRouteInput) GetNamespace() string
- func (g *GRPCRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
- func (g *GRPCRouteInput) GetRules() []GenericRule
- func (g *GRPCRouteInput) Log() *logrus.Entry
- func (g *GRPCRouteInput) SetAllParentCondition(condition metav1.Condition)
- func (g *GRPCRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)
- type GRPCRouteRule
- 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 gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
- func (h *HTTPRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
- func (h *HTTPRouteInput) GetHostnames() []gatewayv1.Hostname
- func (h *HTTPRouteInput) GetNamespace() string
- func (h *HTTPRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
- func (h *HTTPRouteInput) GetRules() []GenericRule
- func (h *HTTPRouteInput) Log() *logrus.Entry
- func (h *HTTPRouteInput) SetAllParentCondition(condition metav1.Condition)
- func (h *HTTPRouteInput) SetParentCondition(ref gatewayv1.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 gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
- func (t *TLSRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
- func (t *TLSRouteInput) GetHostnames() []gatewayv1.Hostname
- func (t *TLSRouteInput) GetNamespace() string
- func (t *TLSRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
- func (t *TLSRouteInput) GetRules() []GenericRule
- func (t *TLSRouteInput) Log() *logrus.Entry
- func (t *TLSRouteInput) SetAllParentCondition(condition metav1.Condition)
- func (t *TLSRouteInput) SetParentCondition(ref gatewayv1.ParentReference, condition metav1.Condition)
- type TLSRouteRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBackend ¶ added in v1.16.0
func CheckGammaServiceAllowedForNamespace ¶ added in v1.16.0
func CheckGammaServiceAllowedForNamespace(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckGatewayAllowedForNamespace ¶
func CheckGatewayAllowedForNamespace(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckGatewayMatchingHostnames ¶
func CheckGatewayMatchingHostnames(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckGatewayMatchingPorts ¶
func CheckGatewayMatchingPorts(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckGatewayMatchingSection ¶
func CheckGatewayMatchingSection(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckGatewayRouteKindAllowed ¶
func CheckGatewayRouteKindAllowed(input Input, parentRef gatewayv1.ParentReference) (bool, error)
func CheckHasServiceImportSupport ¶ added in v1.16.0
Types ¶
type CheckParentFunc ¶ added in v1.16.0
type CheckParentFunc func(input Input, ref gatewayv1.ParentReference) (bool, error)
type CheckRuleFunc ¶
type GRPCRouteInput ¶ added in v1.15.0
type GRPCRouteInput struct { Ctx context.Context Logger *logrus.Entry Client client.Client Grants *gatewayv1beta1.ReferenceGrantList GRPCRoute *gatewayv1.GRPCRoute // contains filtered or unexported fields }
GRPCRouteInput is used to implement the Input interface for GRPCRoute
func (*GRPCRouteInput) GetClient ¶ added in v1.15.0
func (g *GRPCRouteInput) GetClient() client.Client
func (*GRPCRouteInput) GetContext ¶ added in v1.15.0
func (g *GRPCRouteInput) GetContext() context.Context
func (*GRPCRouteInput) GetGVK ¶ added in v1.15.0
func (g *GRPCRouteInput) GetGVK() schema.GroupVersionKind
func (*GRPCRouteInput) GetGateway ¶ added in v1.15.0
func (g *GRPCRouteInput) GetGateway(parent gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
func (*GRPCRouteInput) GetGrants ¶ added in v1.15.0
func (g *GRPCRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
func (*GRPCRouteInput) GetHostnames ¶ added in v1.15.0
func (g *GRPCRouteInput) GetHostnames() []gatewayv1beta1.Hostname
func (*GRPCRouteInput) GetNamespace ¶ added in v1.15.0
func (g *GRPCRouteInput) GetNamespace() string
func (*GRPCRouteInput) GetParentGammaService ¶ added in v1.16.0
func (g *GRPCRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
func (*GRPCRouteInput) GetRules ¶ added in v1.15.0
func (g *GRPCRouteInput) GetRules() []GenericRule
func (*GRPCRouteInput) Log ¶ added in v1.15.0
func (g *GRPCRouteInput) Log() *logrus.Entry
func (*GRPCRouteInput) SetAllParentCondition ¶ added in v1.15.0
func (g *GRPCRouteInput) SetAllParentCondition(condition metav1.Condition)
func (*GRPCRouteInput) SetParentCondition ¶ added in v1.15.0
func (g *GRPCRouteInput) SetParentCondition(ref gatewayv1beta1.ParentReference, condition metav1.Condition)
type GRPCRouteRule ¶ added in v1.15.0
type GRPCRouteRule struct {
Rule gatewayv1.GRPCRouteRule
}
GRPCRouteRule is used to implement the GenericRule interface for GRPCRoute
func (*GRPCRouteRule) GetBackendRefs ¶ added in v1.15.0
func (g *GRPCRouteRule) GetBackendRefs() []gatewayv1.BackendRef
type GenericRule ¶
type GenericRule interface {
GetBackendRefs() []gatewayv1.BackendRef
}
type HTTPRouteInput ¶
type HTTPRouteInput struct { Ctx context.Context Logger *logrus.Entry Client client.Client Grants *gatewayv1beta1.ReferenceGrantList HTTPRoute *gatewayv1.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 gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
func (*HTTPRouteInput) GetGrants ¶
func (h *HTTPRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
func (*HTTPRouteInput) GetHostnames ¶
func (h *HTTPRouteInput) GetHostnames() []gatewayv1.Hostname
func (*HTTPRouteInput) GetNamespace ¶
func (h *HTTPRouteInput) GetNamespace() string
func (*HTTPRouteInput) GetParentGammaService ¶ added in v1.16.0
func (h *HTTPRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
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 gatewayv1.ParentReference, condition metav1.Condition)
type HTTPRouteRule ¶
type HTTPRouteRule struct {
Rule gatewayv1.HTTPRouteRule
}
HTTPRouteRule is used to implement the GenericRule interface for TLSRoute
func (*HTTPRouteRule) GetBackendRefs ¶
func (t *HTTPRouteRule) GetBackendRefs() []gatewayv1.BackendRef
type Input ¶
type Input interface { GetRules() []GenericRule GetNamespace() string GetClient() client.Client GetContext() context.Context GetGVK() schema.GroupVersionKind GetGrants() []gatewayv1beta1.ReferenceGrant GetGateway(parent gatewayv1.ParentReference) (*gatewayv1.Gateway, error) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error) GetHostnames() []gatewayv1.Hostname SetParentCondition(ref gatewayv1.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 gatewayv1.ParentReference) (*gatewayv1.Gateway, error)
func (*TLSRouteInput) GetGrants ¶
func (t *TLSRouteInput) GetGrants() []gatewayv1beta1.ReferenceGrant
func (*TLSRouteInput) GetHostnames ¶
func (t *TLSRouteInput) GetHostnames() []gatewayv1.Hostname
func (*TLSRouteInput) GetNamespace ¶
func (t *TLSRouteInput) GetNamespace() string
func (*TLSRouteInput) GetParentGammaService ¶ added in v1.16.0
func (t *TLSRouteInput) GetParentGammaService(parent gatewayv1.ParentReference) (*corev1.Service, error)
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 gatewayv1.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() []gatewayv1.BackendRef
Click to show internal directories.
Click to hide internal directories.