package test
import "github.com/envoyproxy/go-control-plane/pkg/test"
Package test contains test utilities
Index ¶
- Constants
- func RunAccessLogServer(ctx context.Context, als *AccessLogService, port uint)
- func RunHTTP(ctx context.Context, upstreamPort uint)
- func RunManagementGateway(ctx context.Context, srv xds.Server, port uint)
- func RunManagementServer(ctx context.Context, server xds.Server, port uint)
- type AccessLogService
Constants ¶
const ( // Hello is the echo message Hello = "Hi, there!\n" )
Functions ¶
func RunAccessLogServer ¶
func RunAccessLogServer(ctx context.Context, als *AccessLogService, port uint)
RunAccessLogServer starts an accessloggrpc service.
func RunHTTP ¶
RunHTTP opens a simple listener on the port.
func RunManagementGateway ¶
RunManagementGateway starts an HTTP gateway to an xDS server.
func RunManagementServer ¶
RunManagementServer starts an xDS server at the given port.
Types ¶
type AccessLogService ¶
type AccessLogService struct {
// contains filtered or unexported fields
}
AccessLogService buffers access logs from the remote Envoy nodes.
func (*AccessLogService) Dump ¶
func (svc *AccessLogService) Dump(f func(string))
Dump releases the collected log entries and clears the log entry list.
func (*AccessLogService) StreamAccessLogs ¶
func (svc *AccessLogService) StreamAccessLogs(stream alsgrpc.AccessLogService_StreamAccessLogsServer) error
StreamAccessLogs implements the access log service.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
pkg/test/main | Package main contains the test driver for testing xDS manually. |
pkg/test/resource | Package resource creates test xDS resources |
- Version
- v0.9.1
- Published
- Nov 9, 2019
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 3 minutes ago –
Tools for package owners.