Documentation ¶
Index ¶
- func ComputeRateLimitConfig(rateLimit *gwpav1alpha1.L7RateLimit, ...) *gwpav1alpha1.L7RateLimit
- func GetRateLimitIfGRPCRouteMatchesPolicy(routeMatch gwv1.GRPCRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
- func GetRateLimitIfHTTPRouteMatchesPolicy(routeMatch gwv1.HTTPRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
- func GetRateLimitIfPortMatchesPolicy(port gwv1.PortNumber, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *int64
- func GetRateLimitIfRouteHostnameMatchesPolicy(routeHostname string, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeRateLimitConfig ¶
func ComputeRateLimitConfig(rateLimit *gwpav1alpha1.L7RateLimit, defaultRateLimit *gwpav1alpha1.L7RateLimit) *gwpav1alpha1.L7RateLimit
ComputeRateLimitConfig computes the rate limit config based on the config and default config
func GetRateLimitIfGRPCRouteMatchesPolicy ¶
func GetRateLimitIfGRPCRouteMatchesPolicy(routeMatch gwv1.GRPCRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
GetRateLimitIfGRPCRouteMatchesPolicy returns the rate limit config if the GRPC route matches the policy
func GetRateLimitIfHTTPRouteMatchesPolicy ¶
func GetRateLimitIfHTTPRouteMatchesPolicy(routeMatch gwv1.HTTPRouteMatch, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
GetRateLimitIfHTTPRouteMatchesPolicy returns the rate limit config if the HTTP route matches the policy
func GetRateLimitIfPortMatchesPolicy ¶
func GetRateLimitIfPortMatchesPolicy(port gwv1.PortNumber, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *int64
GetRateLimitIfPortMatchesPolicy returns true if the port matches the rate limit policy
func GetRateLimitIfRouteHostnameMatchesPolicy ¶
func GetRateLimitIfRouteHostnameMatchesPolicy(routeHostname string, rateLimitPolicy gwpav1alpha1.RateLimitPolicy) *gwpav1alpha1.L7RateLimit
GetRateLimitIfRouteHostnameMatchesPolicy returns the rate limit config if the route hostname matches the policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.