Documentation ¶
Index ¶
- func ComputeAccessControlConfig(config *gwpav1alpha1.AccessControlConfig, ...) *gwpav1alpha1.AccessControlConfig
- func GetAccessControlConfigIfGRPCRouteMatchesPolicy(routeMatch gwv1alpha2.GRPCRouteMatch, ...) *gwpav1alpha1.AccessControlConfig
- func GetAccessControlConfigIfHTTPRouteMatchesPolicy(routeMatch gwv1beta1.HTTPRouteMatch, ...) *gwpav1alpha1.AccessControlConfig
- func GetAccessControlConfigIfPortMatchesPolicy(port gwv1beta1.PortNumber, ...) *gwpav1alpha1.AccessControlConfig
- func GetAccessControlConfigIfRouteHostnameMatchesPolicy(routeHostname string, accessControlPolicy gwpav1alpha1.AccessControlPolicy) *gwpav1alpha1.AccessControlConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeAccessControlConfig ¶
func ComputeAccessControlConfig(config *gwpav1alpha1.AccessControlConfig, defaultConfig *gwpav1alpha1.AccessControlConfig) *gwpav1alpha1.AccessControlConfig
ComputeAccessControlConfig computes the access control config based on the config and default config
func GetAccessControlConfigIfGRPCRouteMatchesPolicy ¶
func GetAccessControlConfigIfGRPCRouteMatchesPolicy(routeMatch gwv1alpha2.GRPCRouteMatch, accessControlPolicy gwpav1alpha1.AccessControlPolicy) *gwpav1alpha1.AccessControlConfig
GetAccessControlConfigIfGRPCRouteMatchesPolicy returns the access control config if the GRPC route matches the policy
func GetAccessControlConfigIfHTTPRouteMatchesPolicy ¶
func GetAccessControlConfigIfHTTPRouteMatchesPolicy(routeMatch gwv1beta1.HTTPRouteMatch, accessControlPolicy gwpav1alpha1.AccessControlPolicy) *gwpav1alpha1.AccessControlConfig
GetAccessControlConfigIfHTTPRouteMatchesPolicy returns the access control config if the HTTP route matches the policy
func GetAccessControlConfigIfPortMatchesPolicy ¶
func GetAccessControlConfigIfPortMatchesPolicy(port gwv1beta1.PortNumber, accessControlPolicy gwpav1alpha1.AccessControlPolicy) *gwpav1alpha1.AccessControlConfig
GetAccessControlConfigIfPortMatchesPolicy returns true if the port matches the access control policy
func GetAccessControlConfigIfRouteHostnameMatchesPolicy ¶
func GetAccessControlConfigIfRouteHostnameMatchesPolicy(routeHostname string, accessControlPolicy gwpav1alpha1.AccessControlPolicy) *gwpav1alpha1.AccessControlConfig
GetAccessControlConfigIfRouteHostnameMatchesPolicy returns the access control config if the route hostname matches the policy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.