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
- func (svc *AccessLogService) Dump(f func(string))
- func (svc *AccessLogService) StreamAccessLogs(stream als.AccessLogService_StreamAccessLogsServer) error
- type Hasher
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 accesslog 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 als.AccessLogService_StreamAccessLogsServer) error
StreamAccessLogs implements the access log service.
type Hasher ¶
type Hasher struct { }
Hasher returns node ID as an ID
func (Hasher) ID ¶
ID function
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.6.7
- Published
- Jan 25, 2019
- Platform
- windows/amd64
- Imports
- 14 packages
- Last checked
- 38 minutes ago –
Tools for package owners.