testservers

package
v0.0.0-...-db3f45c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 Imported by: 0

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