Documentation ¶
Index ¶
- Variables
- func AddGatewayListener(gw *gatewayv1.Gateway, name string, port int32, ...)
- func GetHTTPHeaderFilterV1(actions []string) *gatewayv1.HTTPHeaderFilter
- func GetHTTPRouteBackendV1(backendRefs []string) gatewayv1.HTTPBackendRef
- func GetHTTPRouteFilterV1(filterType string, actions []string) gatewayv1.HTTPRouteFilter
- func GetHTTPRouteMatchV1(path string, pathMatchType string, headers []string) gatewayv1.HTTPRouteMatch
- func GetHTTPRouteRuleV1(paths []string, matchHeaders []string, filterActionMap map[string][]string, ...) gatewayv1.HTTPRouteRule
- func GetHTTPRouteRulesV1Login() []gatewayv1.HTTPRouteRule
- func GetListenerStatusV1(ports []int32, attachedRoutes []int32) []gatewayv1.ListenerStatus
- func GetListenersV1(ports []int32, secrets ...string) []gatewayv1.Listener
- func GetModelName(namespace, name string) (string, string)
- func GetParentReferencesV1(gatewayNames []string, namespace string, ports []int32) []gatewayv1.ParentReference
- func GetRouteStatusV1(gatewayNames []string, namespace string, ports []int32, ...) *gatewayv1.RouteStatus
- func NewAviFakeClientInstance(kubeclient *k8sfake.Clientset, skipCachePopulation ...bool)
- func SetGatewayGatewayClass(gw *gatewayv1.Gateway, name string)
- func SetGatewayName(gw *gatewayv1.Gateway, name string)
- func SetListenerHostname(l *gatewayv1.Listener, hostname string)
- func SetListenerTLS(l *gatewayv1.Listener, tlsMode gatewayv1.TLSModeType, ...)
- func SetupGateway(t *testing.T, name, namespace, gatewayClass string, ...)
- func SetupGatewayClass(t *testing.T, name, controllerName string)
- func SetupHTTPRoute(t *testing.T, name, namespace string, parentRefs []gatewayv1.ParentReference, ...)
- func TeardownGateway(t *testing.T, name, namespace string)
- func TeardownGatewayClass(t *testing.T, name string)
- func TeardownHTTPRoute(t *testing.T, name, namespace string)
- func UnsetGatewayGatewayClass(gw *gatewayv1.Gateway)
- func UnsetGatewayName(gw *gatewayv1.Gateway)
- func UnsetListenerHostname(l *gatewayv1.Listener)
- func UnsetListenerTLS(l *gatewayv1.Listener)
- func UpdateGateway(t *testing.T, name, namespace, gatewayClass string, ...)
- func UpdateHTTPRoute(t *testing.T, name, namespace string, parentRefs []gatewayv1.ParentReference, ...)
- func ValidateConditions(t *testing.T, actualConditions, expectedConditions []metav1.Condition)
- func ValidateGatewayListeners(t *testing.T, actual, expected *gatewayv1.ListenerStatus)
- func ValidateGatewayStatus(t *testing.T, actualStatus, expectedStatus *gatewayv1.GatewayStatus)
- func ValidateHTTPRouteStatus(t *testing.T, actualStatus, expectedStatus *gatewayv1.HTTPRouteStatus)
- type FakeGatewayClass
- type Gateway
- type HTTPRoute
Constants ¶
This section is empty.
Variables ¶
View Source
var GatewayClient *gatewayfake.Clientset
View Source
var KubeClient *k8sfake.Clientset
Functions ¶
func AddGatewayListener ¶
func GetHTTPHeaderFilterV1 ¶
func GetHTTPHeaderFilterV1(actions []string) *gatewayv1.HTTPHeaderFilter
func GetHTTPRouteBackendV1 ¶
func GetHTTPRouteBackendV1(backendRefs []string) gatewayv1.HTTPBackendRef
func GetHTTPRouteFilterV1 ¶
func GetHTTPRouteFilterV1(filterType string, actions []string) gatewayv1.HTTPRouteFilter
func GetHTTPRouteMatchV1 ¶
func GetHTTPRouteMatchV1(path string, pathMatchType string, headers []string) gatewayv1.HTTPRouteMatch
func GetHTTPRouteRuleV1 ¶
func GetHTTPRouteRulesV1Login ¶
func GetHTTPRouteRulesV1Login() []gatewayv1.HTTPRouteRule
func GetListenerStatusV1 ¶
func GetListenerStatusV1(ports []int32, attachedRoutes []int32) []gatewayv1.ListenerStatus
func GetModelName ¶
func GetParentReferencesV1 ¶
func GetParentReferencesV1(gatewayNames []string, namespace string, ports []int32) []gatewayv1.ParentReference
func GetRouteStatusV1 ¶
func SetGatewayGatewayClass ¶
func SetGatewayName ¶
func SetListenerHostname ¶
func SetListenerTLS ¶
func SetListenerTLS(l *gatewayv1.Listener, tlsMode gatewayv1.TLSModeType, secretName, secretNS string)
func SetupGateway ¶
func SetupGatewayClass ¶
func SetupHTTPRoute ¶
func SetupHTTPRoute(t *testing.T, name, namespace string, parentRefs []gatewayv1.ParentReference, hostnames []gatewayv1.Hostname, rules []gatewayv1.HTTPRouteRule)
func TeardownGateway ¶
func TeardownGatewayClass ¶
func TeardownHTTPRoute ¶
func UnsetGatewayName ¶
func UnsetListenerHostname ¶
func UnsetListenerTLS ¶
func UpdateGateway ¶
func UpdateHTTPRoute ¶
func UpdateHTTPRoute(t *testing.T, name, namespace string, parentRefs []gatewayv1.ParentReference, hostnames []gatewayv1.Hostname, rules []gatewayv1.HTTPRouteRule)
func ValidateConditions ¶
func ValidateGatewayListeners ¶
func ValidateGatewayListeners(t *testing.T, actual, expected *gatewayv1.ListenerStatus)
func ValidateGatewayStatus ¶
func ValidateGatewayStatus(t *testing.T, actualStatus, expectedStatus *gatewayv1.GatewayStatus)
func ValidateHTTPRouteStatus ¶
func ValidateHTTPRouteStatus(t *testing.T, actualStatus, expectedStatus *gatewayv1.HTTPRouteStatus)
Types ¶
type FakeGatewayClass ¶
func (*FakeGatewayClass) Create ¶
func (gc *FakeGatewayClass) Create(t *testing.T)
func (*FakeGatewayClass) Delete ¶
func (gc *FakeGatewayClass) Delete(t *testing.T)
func (*FakeGatewayClass) GatewayClassV1 ¶
func (gc *FakeGatewayClass) GatewayClassV1() *gatewayv1.GatewayClass
func (*FakeGatewayClass) Update ¶
func (gc *FakeGatewayClass) Update(t *testing.T)
type HTTPRoute ¶
func (*HTTPRoute) HTTPRouteV1 ¶
func (hr *HTTPRoute) HTTPRouteV1(name, namespace string, parentRefs []gatewayv1.ParentReference, hostnames []gatewayv1.Hostname, rules []gatewayv1.HTTPRouteRule) *gatewayv1.HTTPRoute
Click to show internal directories.
Click to hide internal directories.