...

Package test

import "github.com/emissary-ingress/emissary/v3/pkg/envoy-control-plane/test"
Overview
Index
Subdirectories

Overview ▾

Package test contains test utilities

func RunAccessLogServer

func RunAccessLogServer(ctx context.Context, als *test.AccessLogService, alsPort uint)

RunAccessLogServer starts an accesslog server.

func RunManagementGateway

func RunManagementGateway(ctx context.Context, srv server.Server, port uint)

RunManagementGateway starts an HTTP gateway to an xDS server.

func RunManagementServer

func RunManagementServer(ctx context.Context, srv server.Server, port uint)

RunManagementServer starts an xDS server at the given port.

type HTTPGateway

HTTPGateway is a custom implementation of [gRPC gateway](https://github.com/grpc-ecosystem/grpc-gateway) specialized to Envoy xDS API.

type HTTPGateway struct {
    // Log is an optional log for errors in response write
    Log gcplogger.Logger

    Gateway server.HTTPGateway
}

func (*HTTPGateway) ServeHTTP

func (h *HTTPGateway) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Subdirectories

Name Synopsis
..
main Package main contains the test driver for testing xDS manually.
resource
v3 Package resource creates test xDS resources
v3 Package test contains test utilities