Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestCAFile = "anp-test-ca.crt" TestServerCertFile = "anp-test-server.crt" TestServerKeyFile = "anp-test-server.key" TestAgentCertFile = "anp-test-agent.crt" TestAgentKeyFile = "anp-test-agent.key" )
Variables ¶
View Source
var CertsDir string // Initialized with InitCertsDir
Functions ¶
func InitCertsDir ¶
func InitCertsDir() error
InitCertsDir writes the above certificates & keys to a temporary directory.
Types ¶
type Agent ¶
type Agent interface { GetConnectedServerCount() (int, error) Ready() bool Drain() Stop() Metrics() metricstest.AgentTester }
type ExternalAgentRunner ¶ added in v0.30.0
type ExternalAgentRunner struct {
ExecutablePath string
}
type Framework ¶
type Framework struct { AgentRunner AgentRunner ProxyServerRunner ProxyServerRunner }
type InProcessAgentRunner ¶
type InProcessAgentRunner struct{}
type InProcessProxyServerRunner ¶
type InProcessProxyServerRunner struct{}
func (*InProcessProxyServerRunner) Start ¶
func (*InProcessProxyServerRunner) Start(t testing.TB, opts ProxyServerOpts) (ProxyServer, error)
type ProxyServer ¶
type ProxyServer interface { ConnectedBackends() (int, error) AgentAddr() string FrontAddr() string Ready() bool Stop() Metrics() metricstest.ServerTester }
type ProxyServerOpts ¶
type ProxyServerRunner ¶
type ProxyServerRunner interface {
Start(testing.TB, ProxyServerOpts) (ProxyServer, error)
}
Click to show internal directories.
Click to hide internal directories.