testutil

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package testutil has test helpers for AGIC Migration packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAGICPod

func MakeAGICPod(labels ...string) core_v1.Pod

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 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 HTTPRoutePathBackendOption

type HTTPRoutePathBackendOption struct {
	BackendName      string
	BackendNamespace string
	BackendPort      int
}

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 IngressOptions struct {
	Host              string
	Path              string
	Service           string
	ServicePortNumber int
}

type RewriteRuleSetOptions

type RewriteRuleSetOptions struct {
	ReqHeadersSet     map[string]string
	ReqHeadersDelete  []string
	RespHeadersSet    map[string]string
	RespHeadersDelete []string
	PathRewrite       string
}

type RoutePolicyOptions

type RoutePolicyOptions struct {
	Timeout       *time.Duration
	ManagedCookie bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL