Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForExclusiveAccessStrategy ¶
func CheckForExclusiveAccessStrategy(accessStrategies []*gatewayv1beta1.Authenticator, exclusiveAccessStrategy string, attributePath string) []validation.Failure
CheckForExclusiveAccessStrategy checks if there is an access strategy that is not allowed in combination with other access strategies.
func CheckForSecureAndUnsecureAccessStrategies ¶
func CheckForSecureAndUnsecureAccessStrategies(accessStrategies []*gatewayv1beta1.Authenticator, attributePath string) []validation.Failure
CheckForSecureAndUnsecureAccessStrategies checks if there are secure and unsecure access strategies used at the same time.
Types ¶
type APIRuleValidator ¶
type APIRuleValidator struct { ApiRule *gatewayv1beta1.APIRule HandlerValidator handlerValidator AccessStrategiesValidator accessStrategyValidator MutatorsValidator mutatorValidator InjectionValidator *validation.InjectionValidator RulesValidator rulesValidator ServiceBlockList map[string][]string DomainAllowList []string HostBlockList []string DefaultDomainName string }
APIRuleValidator is used to validate github.com/kyma-project/api-gateway/api/v1beta1/APIRule instances
func (*APIRuleValidator) Validate ¶
func (v *APIRuleValidator) Validate(ctx context.Context, client client.Client, vsList networkingv1beta1.VirtualServiceList, _ networkingv1beta1.GatewayList) []validation.Failure
Validate performs APIRule validation
Click to show internal directories.
Click to hide internal directories.