testservers

package
v0.0.0-...-4ba66ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LoggregatorTestCerts = GenerateCerts("loggregatorCA")

Functions

func BuildRouterConfig

func BuildRouterConfig(agentUDPPort, agentGRPCPort int) app.Config

func BuildTrafficControllerConf

func BuildTrafficControllerConf(routerAddr string, agentPort int) tcConf.Config

Types

type RouterPorts

type RouterPorts struct {
	GRPC  int
	PProf int
}

func StartRouter

func StartRouter(conf app.Config) (cleanup func(), rp RouterPorts)

type TestCerts

type TestCerts struct {
	// contains filtered or unexported fields
}

func GenerateCerts

func GenerateCerts(caName string) *TestCerts

func (*TestCerts) CA

func (tc *TestCerts) CA() string

func (*TestCerts) Cert

func (tc *TestCerts) Cert(commonName string) string

func (*TestCerts) CertTestCA

func (tc *TestCerts) CertTestCA() *certtest.Authority

func (*TestCerts) Key

func (tc *TestCerts) Key(commonName string) string

type TrafficControllerPorts

type TrafficControllerPorts struct {
	WS    int
	PProf int
}

func StartTrafficController

func StartTrafficController(conf tcConf.Config) (cleanup func(), tp TrafficControllerPorts)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL