Documentation ¶
Index ¶
- func EnvoyFilterRatelimitsUnstructured(rateLimits []*apimv1alpha1.RateLimit) []map[string]interface{}
- func LimitadorClusterEnvoyPatch() *istioapiv1alpha3.EnvoyFilter_EnvoyConfigObjectPatch
- func StringMatch(path string, matchType PathMatchType) *istioapinetworkingv1alpha3.StringMatch
- type EnvoyFilterFactory
- type HTTPFilterStage
- type PathMatchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvoyFilterRatelimitsUnstructured ¶
func EnvoyFilterRatelimitsUnstructured(rateLimits []*apimv1alpha1.RateLimit) []map[string]interface{}
EnvoyFilterRatelimitsUnstructured returns "rate_limits" envoy filter patch format from kuadrant rate limits
func LimitadorClusterEnvoyPatch ¶
func LimitadorClusterEnvoyPatch() *istioapiv1alpha3.EnvoyFilter_EnvoyConfigObjectPatch
func StringMatch ¶
func StringMatch(path string, matchType PathMatchType) *istioapinetworkingv1alpha3.StringMatch
Types ¶
type EnvoyFilterFactory ¶
type EnvoyFilterFactory struct { ObjectName string Namespace string Patches []*istioapiv1alpha3.EnvoyFilter_EnvoyConfigObjectPatch Labels map[string]string }
func (*EnvoyFilterFactory) EnvoyFilter ¶
func (v *EnvoyFilterFactory) EnvoyFilter() *istionetworkingv1alpha3.EnvoyFilter
type HTTPFilterStage ¶
type HTTPFilterStage uint32
const ( PreAuthStage HTTPFilterStage = iota PostAuthStage PatchedLimitadorClusterName = "rate-limit-cluster" )
type PathMatchType ¶
type PathMatchType string
const ( PathMatchExact PathMatchType = "Exact" PathMatchPrefix PathMatchType = "Prefix" PathMatchRegularExpression PathMatchType = "RegularExpression" )
PathMatchType constants.
Click to show internal directories.
Click to hide internal directories.