Documentation
¶
Overview ¶
Package testutil has test helpers for AGIC Migration packages.
Index ¶
- func MakeAGICPod(labels ...string) core_v1.Pod
- func MakeALB(namespace, name, subnetID string) albcontrollerapi_v1.ApplicationLoadBalancer
- func MakeAzureApplicationGatewayRewrite(namespace string, name string, rules ...appgwrewrite.RewriteRule) appgwrewrite.AzureApplicationGatewayRewrite
- func MakeAzureApplicationGatewayRewriteList(namespace string, count int) *appgwrewrite.AzureApplicationGatewayRewriteList
- func MakeBackendTLSPolicy(namespace string, name string, serviceNamespace string, serviceName string, ...) albcontrollerapi_v1.BackendTLSPolicy
- func MakeFrontendTLSPolicy(namespace string, name string) albcontrollerapi_v1.FrontendTLSPolicy
- func MakeGateway(namespace string, name string) gatewayapi_v1.Gateway
- func MakeHTTPRoute(namespace string, name string, options HTTPRouteOptions) gatewayapi_v1.HTTPRoute
- func MakeHealthCheckPolicy(namespace string, name string, serviceNamespace string, serviceName string, ...) albcontrollerapi_v1.HealthCheckPolicy
- func MakeIngress(namespace string, name string, options IngressOptions, annotations ...string) network_v1.Ingress
- func MakeIngressList(ingressClass string, count int) *network_v1.IngressList
- func MakeReferenceGrant(namespace string, name string) gatewayapi_v1beta1.ReferenceGrant
- func MakeRewriteRuleSet(namespace string, name string, opts RewriteRuleSetOptions, ...) appgwrewrite.AzureApplicationGatewayRewrite
- func MakeRoutePolicy(namespace string, name string, routeNamespace string, routeName string, ...) albcontrollerapi_v1.RoutePolicy
- func MakeWAFPolicy(namespace string, name string, routeNamespace string, routeName string, ...) albcontrollerapi_v1.WebApplicationFirewallPolicy
- type BackendDescriptor
- type HTTPRouteOptions
- type HTTPRoutePathBackendOption
- type HTTPRoutePathOption
- type HealthCheckPolicyOptions
- type IngressOptions
- type RewriteRuleSetOptions
- type RoutePolicyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAGICPod ¶
func MakeALB ¶
func MakeALB(namespace, name, subnetID string) albcontrollerapi_v1.ApplicationLoadBalancer
func MakeAzureApplicationGatewayRewrite ¶
func MakeAzureApplicationGatewayRewrite(namespace string, name string, rules ...appgwrewrite.RewriteRule) appgwrewrite.AzureApplicationGatewayRewrite
func MakeAzureApplicationGatewayRewriteList ¶
func MakeAzureApplicationGatewayRewriteList(namespace string, count int) *appgwrewrite.AzureApplicationGatewayRewriteList
func MakeBackendTLSPolicy ¶
func MakeBackendTLSPolicy(namespace string, name string, serviceNamespace string, serviceName string, ports ...int) albcontrollerapi_v1.BackendTLSPolicy
func MakeFrontendTLSPolicy ¶
func MakeFrontendTLSPolicy(namespace string, name string) albcontrollerapi_v1.FrontendTLSPolicy
func MakeGateway ¶
func MakeGateway(namespace string, name string) gatewayapi_v1.Gateway
func MakeHTTPRoute ¶
func MakeHTTPRoute(namespace string, name string, options HTTPRouteOptions) gatewayapi_v1.HTTPRoute
func MakeHealthCheckPolicy ¶
func MakeHealthCheckPolicy(namespace string, name string, serviceNamespace string, serviceName string, options HealthCheckPolicyOptions) albcontrollerapi_v1.HealthCheckPolicy
func MakeIngress ¶
func MakeIngress(namespace string, name string, options IngressOptions, annotations ...string) network_v1.Ingress
func MakeIngressList ¶
func MakeIngressList(ingressClass string, count int) *network_v1.IngressList
func MakeReferenceGrant ¶
func MakeReferenceGrant(namespace string, name string) gatewayapi_v1beta1.ReferenceGrant
func MakeRewriteRuleSet ¶
func MakeRewriteRuleSet(namespace string, name string, opts RewriteRuleSetOptions, rules ...appgwrewrite.RewriteRule) appgwrewrite.AzureApplicationGatewayRewrite
func MakeRoutePolicy ¶
func MakeRoutePolicy(namespace string, name string, routeNamespace string, routeName string, options RoutePolicyOptions) albcontrollerapi_v1.RoutePolicy
func MakeWAFPolicy ¶
func MakeWAFPolicy(namespace string, name string, routeNamespace string, routeName string, id string) albcontrollerapi_v1.WebApplicationFirewallPolicy
Types ¶
type BackendDescriptor ¶
type BackendDescriptor struct {
Path string
ServiceName string
Port network_v1.ServiceBackendPort
}
func NewBackendDescriptor ¶
func NewBackendDescriptor(path string, serviceName string, portName string, portNumber int) BackendDescriptor
type HTTPRouteOptions ¶
type HTTPRouteOptions struct {
Paths []HTTPRoutePathOption
}
type HTTPRoutePathOption ¶
type HTTPRoutePathOption struct {
Path string
Filters []gatewayapi_v1.HTTPRouteFilter
Backends []HTTPRoutePathBackendOption
}
type HealthCheckPolicyOptions ¶
type HealthCheckPolicyOptions struct {
Interval *time.Duration
Timeout *time.Duration
Hostname *string
Path *string
StatusCodes []*albcontrollerapi_v1.StatusCodes
Port *int
UnhealthyThreshold *int
}
type IngressOptions ¶
type RewriteRuleSetOptions ¶
type RoutePolicyOptions ¶
Click to show internal directories.
Click to hide internal directories.