Documentation ¶
Index ¶
- Variables
- func GetPluginsWithExtensions(opts bootstrap.Opts, extensions Extensions) func() []plugins.Plugin
- func GetPluginsWithExtensionsAndRegistry(opts bootstrap.Opts, ...) func() []plugins.Plugin
- func NewControlPlane(ctx context.Context, grpcServer *grpc.Server, bindAddr net.Addr, ...) bootstrap.ControlPlane
- func NewSetupFunc() setuputils.SetupFunc
- func NewSetupFuncWithExtensions(extensions Extensions) setuputils.SetupFunc
- func NewSetupFuncWithRun(runFunc RunFunc) setuputils.SetupFunc
- func NewSetupFuncWithRunAndExtensions(runFunc RunFunc, extensions *Extensions) setuputils.SetupFunc
- func NewTranslatorSyncer(translator translator.Translator, xdsCache envoycache.SnapshotCache, ...) v1.ApiSyncer
- func NewValidationServer(ctx context.Context, grpcServer *grpc.Server, bindAddr net.Addr, start bool) bootstrap.ValidationServer
- func RunGloo(opts bootstrap.Opts) error
- func RunGlooWithExtensions(opts bootstrap.Opts, extensions Extensions) error
- type Extensions
- type MockXdsCache
- func (*MockXdsCache) ClearSnapshot(node string)
- func (*MockXdsCache) CreateWatch(envoycache.Request) (value chan envoycache.Response, cancel func())
- func (*MockXdsCache) Fetch(context.Context, envoycache.Request) (*envoycache.Response, error)
- func (c *MockXdsCache) GetSnapshot(node string) (envoycache.Snapshot, error)
- func (*MockXdsCache) GetStatusInfo(string) envoycache.StatusInfo
- func (c *MockXdsCache) GetStatusKeys() []string
- func (c *MockXdsCache) SetSnapshot(node string, snapshot envoycache.Snapshot) error
- type MockXdsSanitizer
- type RunFunc
- type TranslatorSyncerExtension
- type TranslatorSyncerExtensionFactory
- type TranslatorSyncerExtensionParams
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultXdsBindAddr = fmt.Sprintf("0.0.0.0:%v", defaults.GlooXdsPort) DefaultValidationBindAddr = fmt.Sprintf("0.0.0.0:%v", defaults.GlooValidationPort) DefaultRestXdsBindAddr = fmt.Sprintf("0.0.0.0:%v", defaults.GlooRestXdsPort) )
Functions ¶
func GetPluginsWithExtensions ¶ added in v1.2.9
func GetPluginsWithExtensions(opts bootstrap.Opts, extensions Extensions) func() []plugins.Plugin
func GetPluginsWithExtensionsAndRegistry ¶ added in v1.2.9
func NewControlPlane ¶
func NewSetupFunc ¶
func NewSetupFunc() setuputils.SetupFunc
func NewSetupFuncWithExtensions ¶
func NewSetupFuncWithExtensions(extensions Extensions) setuputils.SetupFunc
used outside of this repo noinspection GoUnusedExportedFunction
func NewSetupFuncWithRun ¶
func NewSetupFuncWithRun(runFunc RunFunc) setuputils.SetupFunc
for use by UDS, FDS, other v1.SetupSyncers
func NewSetupFuncWithRunAndExtensions ¶ added in v0.11.2
func NewSetupFuncWithRunAndExtensions(runFunc RunFunc, extensions *Extensions) setuputils.SetupFunc
func NewTranslatorSyncer ¶
func NewTranslatorSyncer( translator translator.Translator, xdsCache envoycache.SnapshotCache, xdsHasher *xds.ProxyKeyHasher, sanitizer sanitizer.XdsSanitizer, reporter reporter.Reporter, devMode bool, extensions []TranslatorSyncerExtension, settings *v1.Settings, ) v1.ApiSyncer
func NewValidationServer ¶ added in v0.18.43
func RunGlooWithExtensions ¶
func RunGlooWithExtensions(opts bootstrap.Opts, extensions Extensions) error
Types ¶
type Extensions ¶
type MockXdsCache ¶ added in v1.6.11
type MockXdsCache struct { Called bool // Snap that is set SetSnap envoycache.Snapshot // Snap that is returned GetSnap envoycache.Snapshot }
func (*MockXdsCache) ClearSnapshot ¶ added in v1.6.11
func (*MockXdsCache) ClearSnapshot(node string)
func (*MockXdsCache) CreateWatch ¶ added in v1.6.11
func (*MockXdsCache) CreateWatch(envoycache.Request) (value chan envoycache.Response, cancel func())
func (*MockXdsCache) Fetch ¶ added in v1.6.11
func (*MockXdsCache) Fetch(context.Context, envoycache.Request) (*envoycache.Response, error)
func (*MockXdsCache) GetSnapshot ¶ added in v1.6.11
func (c *MockXdsCache) GetSnapshot(node string) (envoycache.Snapshot, error)
func (*MockXdsCache) GetStatusInfo ¶ added in v1.6.11
func (*MockXdsCache) GetStatusInfo(string) envoycache.StatusInfo
func (*MockXdsCache) GetStatusKeys ¶ added in v1.6.11
func (c *MockXdsCache) GetStatusKeys() []string
func (*MockXdsCache) SetSnapshot ¶ added in v1.6.11
func (c *MockXdsCache) SetSnapshot(node string, snapshot envoycache.Snapshot) error
type MockXdsSanitizer ¶ added in v1.6.11
type MockXdsSanitizer struct { Called bool Snap envoycache.Snapshot Err error }
func (*MockXdsSanitizer) SanitizeSnapshot ¶ added in v1.6.11
func (s *MockXdsSanitizer) SanitizeSnapshot(ctx context.Context, glooSnapshot *v1.ApiSnapshot, xdsSnapshot envoycache.Snapshot, reports reporter.ResourceReports) (envoycache.Snapshot, error)
type TranslatorSyncerExtension ¶
type TranslatorSyncerExtension interface { Sync( ctx context.Context, snap *v1.ApiSnapshot, xdsCache envoycache.SnapshotCache, reports reporter.ResourceReports, ) (string, error) }
type TranslatorSyncerExtensionFactory ¶ added in v0.11.0
type TranslatorSyncerExtensionFactory func(context.Context, TranslatorSyncerExtensionParams) (TranslatorSyncerExtension, error)
type TranslatorSyncerExtensionParams ¶ added in v0.11.0
type TranslatorSyncerExtensionParams struct {
RateLimitServiceSettings ratelimit.ServiceSettings
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.