package test

import "github.com/envoyproxy/go-control-plane/pkg/test"

Package test contains test utilities

Index

Functions

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.

Types

type HTTPGateway

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

	Gateway server.HTTPGateway
}

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

func (*HTTPGateway) ServeHTTP

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

Source Files

server.go

Directories

PathSynopsis
pkg/test/mainPackage main contains the test driver for testing xDS manually.
pkg/test/resource
pkg/test/resource/v3Package resource creates test xDS resources
pkg/test/v3Package test contains test utilities
Version
v0.13.3
Published
Jan 2, 2025
Platform
js/wasm
Imports
11 packages
Last checked
1 hour ago

Tools for package owners.