Documentation
¶
Index ¶
- func AllocateGlooPort() int32
- func DefaultGlooOpts(ctx context.Context, runOptions *RunOptions) bootstrap.Opts
- func DefaultTestConstructOpts(ctx context.Context, runOptions *RunOptions) gatewaysyncer.Opts
- func NextBindPort() uint32
- type ConsulFactory
- type ConsulInstance
- func (i *ConsulInstance) AddConfig(name, content string)
- func (i *ConsulInstance) AddConfigFromStruct(name string, cfg interface{})
- func (i *ConsulInstance) Binary() string
- func (i *ConsulInstance) Clean() error
- func (i *ConsulInstance) ReloadConfig()
- func (i *ConsulInstance) Run() error
- func (i *ConsulInstance) Silence()
- type EnvoyFactory
- type EnvoyInstance
- func (ei *EnvoyInstance) Binary() string
- func (ei *EnvoyInstance) Clean() error
- func (ei *EnvoyInstance) LocalAddr() string
- func (ei *EnvoyInstance) Logs() string
- func (ei *EnvoyInstance) Run(port int) error
- func (ei *EnvoyInstance) RunWithId(id string) error
- func (ei *EnvoyInstance) RunWithRole(role string, port int) error
- type NatsStreamingFactory
- type NatsStreamingInstance
- type PrometheusFactory
- type PrometheusInstance
- type QuoteUnquoteMesh
- type RunOptions
- type Runner
- type Service
- type StaticConfigs
- type TestClients
- type VaultFactory
- type VaultInstance
- type What
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocateGlooPort ¶
func AllocateGlooPort() int32
func DefaultGlooOpts ¶
func DefaultGlooOpts(ctx context.Context, runOptions *RunOptions) bootstrap.Opts
func DefaultTestConstructOpts ¶
func DefaultTestConstructOpts(ctx context.Context, runOptions *RunOptions) gatewaysyncer.Opts
func NextBindPort ¶
func NextBindPort() uint32
Types ¶
type ConsulFactory ¶
type ConsulFactory struct {
// contains filtered or unexported fields
}
func NewConsulFactory ¶
func NewConsulFactory() (*ConsulFactory, error)
func (*ConsulFactory) NewConsulInstance ¶
func (ef *ConsulFactory) NewConsulInstance() (*ConsulInstance, error)
type ConsulInstance ¶
type ConsulInstance struct {
// contains filtered or unexported fields
}
func (*ConsulInstance) AddConfigFromStruct ¶
func (i *ConsulInstance) AddConfigFromStruct(name string, cfg interface{})
func (*ConsulInstance) ReloadConfig ¶
func (i *ConsulInstance) ReloadConfig()
type EnvoyFactory ¶
type EnvoyFactory struct {
// contains filtered or unexported fields
}
func NewEnvoyFactory ¶
func NewEnvoyFactory() (*EnvoyFactory, error)
func (*EnvoyFactory) NewEnvoyInstance ¶
func (ef *EnvoyFactory) NewEnvoyInstance() (*EnvoyInstance, error)
type EnvoyInstance ¶
type EnvoyInstance struct {
RatelimitAddr string
RatelimitPort uint32
ID string
Role string
GlooAddr string // address for gloo and services
Port uint32
AdminPort uint32
// contains filtered or unexported fields
}
func (*EnvoyInstance) RunWithRole ¶
func (ei *EnvoyInstance) RunWithRole(role string, port int) error
type NatsStreamingFactory ¶
type NatsStreamingFactory struct {
// contains filtered or unexported fields
}
func NewNatsStreamingFactory ¶
func NewNatsStreamingFactory() (*NatsStreamingFactory, error)
func (*NatsStreamingFactory) NewNatsStreamingInstance ¶
func (gf *NatsStreamingFactory) NewNatsStreamingInstance() (*NatsStreamingInstance, error)
type NatsStreamingInstance ¶
type NatsStreamingInstance struct {
// contains filtered or unexported fields
}
type PrometheusFactory ¶
type PrometheusFactory struct {
// contains filtered or unexported fields
}
func NewPrometheusFactory ¶
func NewPrometheusFactory() (*PrometheusFactory, error)
func (*PrometheusFactory) NewPrometheusInstance ¶
func (pf *PrometheusFactory) NewPrometheusInstance() *PrometheusInstance
type PrometheusInstance ¶
type PrometheusInstance struct {
Port int32
// contains filtered or unexported fields
}
type QuoteUnquoteMesh ¶
type QuoteUnquoteMesh struct {
Envoys []*EnvoyInstance
// contains filtered or unexported fields
}
func (*QuoteUnquoteMesh) AddFault ¶
func (m *QuoteUnquoteMesh) AddFault(svcIndex int, percent float32)
func (*QuoteUnquoteMesh) RemoveFault ¶
func (m *QuoteUnquoteMesh) RemoveFault(svcIndex int)
func (*QuoteUnquoteMesh) Start ¶
func (m *QuoteUnquoteMesh) Start(ef *EnvoyFactory, testClients TestClients, services []*Service)
func (*QuoteUnquoteMesh) UpdateSelfListener ¶
func (m *QuoteUnquoteMesh) UpdateSelfListener(svcIndex int, l *gloov1.Listener)
type RunOptions ¶
type RunOptions struct {
NsToWrite string
NsToWatch []string
WhatToRun What
GlooPort int32
ExtensionConfigs *gloov1.Extensions
Extensions syncer.Extensions
Cache memory.InMemoryResourceCache
KubeClient kubernetes.Interface
}
type Service ¶
type Service struct {
Name string
Process string
// these will be filled by Start
Port uint32
MeshPort uint32
}
type StaticConfigs ¶
type StaticConfigs []*targetgroup.Group
type TestClients ¶
type TestClients struct {
GatewayClient gatewayv1.GatewayClient
VirtualServiceClient gatewayv1.VirtualServiceClient
ProxyClient gloov1.ProxyClient
UpstreamClient gloov1.UpstreamClient
SecretClient gloov1.SecretClient
GlooPort int
}
func GetTestClients ¶
func GetTestClients(cache memory.InMemoryResourceCache) TestClients
func RunGateway ¶
func RunGateway(ctx context.Context, justgloo bool) TestClients
func RunGlooGatewayUdsFds ¶
func RunGlooGatewayUdsFds(ctx context.Context, runOptions *RunOptions) TestClients
type VaultFactory ¶
type VaultFactory struct {
// contains filtered or unexported fields
}
func NewVaultFactory ¶
func NewVaultFactory() (*VaultFactory, error)
func (*VaultFactory) NewVaultInstance ¶
func (ef *VaultFactory) NewVaultInstance() (*VaultInstance, error)
type VaultInstance ¶
type VaultInstance struct {
// contains filtered or unexported fields
}
func (*VaultInstance) RunWithPort ¶
func (i *VaultInstance) RunWithPort() error
Click to show internal directories.
Click to hide internal directories.