Documentation ¶
Index ¶
- func NewTranslatorSyncer(translator translator.Translator, xdsCache envoycache.SnapshotCache, ...) v1snap.ApiSyncer
- 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)
- type MockXdsSanitizer
- type TranslatorSyncerExtension
- type TranslatorSyncerExtensionFactory
- type TranslatorSyncerExtensionParams
- type UpgradeableTranslatorSyncerExtension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTranslatorSyncer ¶
func NewTranslatorSyncer( translator translator.Translator, xdsCache envoycache.SnapshotCache, xdsHasher *xds.ProxyKeyHasher, sanitizer sanitizer.XdsSanitizer, reporter reporter.StatusReporter, devMode bool, extensions []TranslatorSyncerExtension, settings *v1.Settings, statusMetrics metrics.ConfigStatusMetrics, ) v1snap.ApiSyncer
Types ¶
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)
type MockXdsSanitizer ¶ added in v1.6.11
type MockXdsSanitizer struct { Called bool Snap envoycache.Snapshot }
func (*MockXdsSanitizer) SanitizeSnapshot ¶ added in v1.6.11
func (s *MockXdsSanitizer) SanitizeSnapshot(ctx context.Context, glooSnapshot *v1snap.ApiSnapshot, xdsSnapshot envoycache.Snapshot, reports reporter.ResourceReports) envoycache.Snapshot
type TranslatorSyncerExtension ¶
type TranslatorSyncerExtension interface { Sync( ctx context.Context, snap *v1snap.ApiSnapshot, settings *v1.Settings, xdsCache envoycache.SnapshotCache, reports reporter.ResourceReports, ) (string, error) }
TODO(kdorosh) in follow up PR, update this interface so it can never error It is logically invalid for us to return an error here (translation of resources always needs to result in a xds snapshot, so we are resilient to pod restarts)
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
}
type UpgradeableTranslatorSyncerExtension ¶ added in v1.6.11
Source Files ¶
Click to show internal directories.
Click to hide internal directories.