Documentation ¶
Index ¶
- func ContainsAuthenFilter(hroute *gwapiv1b1.HTTPRoute) bool
- func GetAuthenticationFilter(name, ns string) *egv1a1.AuthenticationFilter
- func GetAuthenticationProvider(name string) egv1a1.JwtAuthenticationFilterProvider
- func GetGRPCRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.GRPCRoute
- func GetGateway(nsname types.NamespacedName, gwclass string) *gwapiv1b1.Gateway
- func GetGatewayClass(name string, controller gwapiv1b1.GatewayController) *gwapiv1b1.GatewayClass
- func GetGatewayDeployment(nsname types.NamespacedName, labels map[string]string) *appsv1.Deployment
- func GetHTTPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1b1.HTTPRoute
- func GetRateLimitFilter(name, ns string) *egv1a1.RateLimitFilter
- func GetRateLimitGlobalRule(val string) egv1a1.RateLimitRule
- func GetSecret(nsname types.NamespacedName) *corev1.Secret
- func GetSecureGateway(nsname types.NamespacedName, gwclass string, ...) *gwapiv1b1.Gateway
- func GetService(nsname types.NamespacedName, labels map[string]string, ports map[string]int32) *corev1.Service
- func GetTCPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.TCPRoute
- func GetTLSRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.TLSRoute
- func GetUDPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.UDPRoute
- func NewEnvoyProxy(ns, name string) *egcfgv1a1.EnvoyProxy
- type ObjectKindNamespacedName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAuthenFilter ¶
func GetAuthenticationFilter ¶
func GetAuthenticationFilter(name, ns string) *egv1a1.AuthenticationFilter
GetAuthenticationFilter returns a pointer to an AuthenticationFilter with the provided ns/name. The AuthenticationFilter uses a JWT provider with dummy issuer, audiences, and remoteJWKS settings.
func GetAuthenticationProvider ¶
func GetAuthenticationProvider(name string) egv1a1.JwtAuthenticationFilterProvider
GetAuthenticationProvider returns a JwtAuthenticationFilterProvider using the provided name.
func GetGRPCRoute ¶
func GetGRPCRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.GRPCRoute
GetGRPCRoute returns a sample GRPCRoute with a parent reference.
func GetGateway ¶
func GetGateway(nsname types.NamespacedName, gwclass string) *gwapiv1b1.Gateway
GetGateway returns a sample Gateway with single listener.
func GetGatewayClass ¶
func GetGatewayClass(name string, controller gwapiv1b1.GatewayController) *gwapiv1b1.GatewayClass
GetGatewayClass returns a sample GatewayClass.
func GetGatewayDeployment ¶
func GetGatewayDeployment(nsname types.NamespacedName, labels map[string]string) *appsv1.Deployment
GetGatewayDeployment returns a sample Deployment for a Gateway object.
func GetHTTPRoute ¶
func GetHTTPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1b1.HTTPRoute
GetHTTPRoute returns a sample HTTPRoute with a parent reference.
func GetRateLimitFilter ¶
func GetRateLimitFilter(name, ns string) *egv1a1.RateLimitFilter
GetRateLimitFilter returns a pointer to an RateLimitFilter with dummy rules.
func GetRateLimitGlobalRule ¶
func GetRateLimitGlobalRule(val string) egv1a1.RateLimitRule
GetRateLimitGlobalRule returns a RateLimitRule using the val as the ClientSelectors headers value.
func GetSecret ¶
func GetSecret(nsname types.NamespacedName) *corev1.Secret
GetSecret returns a sample Secret object.
func GetSecureGateway ¶
func GetSecureGateway(nsname types.NamespacedName, gwclass string, secretKindNSName ObjectKindNamespacedName) *gwapiv1b1.Gateway
GetSecureGateway returns a sample Gateway with single TLS listener.
func GetService ¶
func GetService(nsname types.NamespacedName, labels map[string]string, ports map[string]int32) *corev1.Service
GetService returns a sample Service with labels and ports.
func GetTCPRoute ¶
func GetTCPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.TCPRoute
GetTCPRoute returns a sample TCPRoute with a parent reference.
func GetTLSRoute ¶
func GetTLSRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.TLSRoute
GetTLSRoute returns a sample TLSRoute with a parent reference.
func GetUDPRoute ¶
func GetUDPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName) *gwapiv1a2.UDPRoute
GetUDPRoute returns a sample UDPRoute with a parent reference.
func NewEnvoyProxy ¶
func NewEnvoyProxy(ns, name string) *egcfgv1a1.EnvoyProxy
NewEnvoyProxy returns an EnvoyProxy object with the provided ns/name.