Documentation ¶
Index ¶
- func ComputeFaultInjectionConfig(config *gwpav1alpha1.FaultInjectionConfig, ...) *gwpav1alpha1.FaultInjectionConfig
- func GetFaultInjectionConfigIfGRPCRouteMatchesPolicy(routeMatch gwv1.GRPCRouteMatch, ...) *gwpav1alpha1.FaultInjectionConfig
- func GetFaultInjectionConfigIfHTTPRouteMatchesPolicy(routeMatch gwv1.HTTPRouteMatch, ...) *gwpav1alpha1.FaultInjectionConfig
- func GetFaultInjectionConfigIfRouteHostnameMatchesPolicy(routeHostname string, faultInjectionPolicy gwpav1alpha1.FaultInjectionPolicy) *gwpav1alpha1.FaultInjectionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeFaultInjectionConfig ¶
func ComputeFaultInjectionConfig(config *gwpav1alpha1.FaultInjectionConfig, defaultConfig *gwpav1alpha1.FaultInjectionConfig, unit *string) *gwpav1alpha1.FaultInjectionConfig
ComputeFaultInjectionConfig computes the fault injection config based on the port config and default config
func GetFaultInjectionConfigIfGRPCRouteMatchesPolicy ¶
func GetFaultInjectionConfigIfGRPCRouteMatchesPolicy(routeMatch gwv1.GRPCRouteMatch, faultInjectionPolicy gwpav1alpha1.FaultInjectionPolicy) *gwpav1alpha1.FaultInjectionConfig
GetFaultInjectionConfigIfGRPCRouteMatchesPolicy returns the fault injection config if the GRPC route matches the policy
func GetFaultInjectionConfigIfHTTPRouteMatchesPolicy ¶
func GetFaultInjectionConfigIfHTTPRouteMatchesPolicy(routeMatch gwv1.HTTPRouteMatch, faultInjectionPolicy gwpav1alpha1.FaultInjectionPolicy) *gwpav1alpha1.FaultInjectionConfig
GetFaultInjectionConfigIfHTTPRouteMatchesPolicy returns the fault injection config if the HTTP route matches the policy
func GetFaultInjectionConfigIfRouteHostnameMatchesPolicy ¶
func GetFaultInjectionConfigIfRouteHostnameMatchesPolicy(routeHostname string, faultInjectionPolicy gwpav1alpha1.FaultInjectionPolicy) *gwpav1alpha1.FaultInjectionConfig
GetFaultInjectionConfigIfRouteHostnameMatchesPolicy returns the fault injection config if the route hostname matches the policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.